mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-18 14:27:02 +02:00
bug fix: backups v2 input own client_id and client_secret
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
|
||||
<div ng-hide="installationDetailsForm" class="form-group">
|
||||
<p class="text-center"><a href="https://rclone.org/drive/#making-your-own-client-id">Learn how to create this.</a>. These field can be left empty but backups may not work then. </p>
|
||||
<p style="margin: 1%" class="text-center"><a href="https://rclone.org/drive/#making-your-own-client-id">Learn how to create this.</a>. These field can be left empty but backups may not work then. </p>
|
||||
<label class="col-sm-3 control-label">{% trans "client_id" %}</label>
|
||||
<div class="col-sm-6">
|
||||
<input name="client_id" type="text" class="form-control"
|
||||
|
||||
@@ -199,6 +199,10 @@ port = {config["sshPort"]}
|
||||
token = """{"access_token":"%s","token_type":"Bearer","refresh_token":"%s", "expiry":"2024-04-08T21:53:00.123456789Z"}""" % (
|
||||
config["token"], config["refresh_token"])
|
||||
|
||||
if config["client_id"] == 'undefined':
|
||||
config["client_id"] = ''
|
||||
config["client_secret"] = ''
|
||||
|
||||
content = f'''
|
||||
[{config["accountname"]}]
|
||||
type = drive
|
||||
|
||||
Reference in New Issue
Block a user