bug fix: backups v2 input own client_id and client_secret

This commit is contained in:
usmannasir
2024-04-20 14:01:27 +04:00
parent b7b5117f2f
commit 69792e7490
2 changed files with 5 additions and 1 deletions

View File

@@ -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"

View File

@@ -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