nix/pkgs/deluge: update path for trying empty login first
This commit is contained in:
parent
a99b7d46a1
commit
c10d4efd5e
1 changed files with 8 additions and 8 deletions
|
@ -1,14 +1,14 @@
|
||||||
diff -ru deluge-2.0.3-orig/deluge/ui/web/js/deluge-all/LoginWindow.js deluge-2.0.3/deluge/ui/web/js/deluge-all/LoginWindow.js
|
diff -ru deluge-2.0.5-orig/deluge/ui/web/js/deluge-all/LoginWindow.js deluge-2.0.5/deluge/ui/web/js/deluge-all/LoginWindow.js
|
||||||
--- deluge-2.0.3-orig/deluge/ui/web/js/deluge-all/LoginWindow.js 2019-06-06 16:23:52.000000000 +0000
|
--- deluge-2.0.5-orig/deluge/ui/web/js/deluge-all/LoginWindow.js 2021-12-12 18:58:24.000000000 +0000
|
||||||
+++ deluge-2.0.3/deluge/ui/web/js/deluge-all/LoginWindow.js 2020-12-28 20:02:59.829316173 +0000
|
+++ deluge-2.0.5/deluge/ui/web/js/deluge-all/LoginWindow.js 2022-01-16 15:25:45.463184041 +0000
|
||||||
@@ -66,6 +66,25 @@
|
@@ -66,6 +66,25 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
+ tryLoginThenShow: function() {
|
+ tryLoginThenShow: function () {
|
||||||
+ // HACK(lukegb): try logging in with no password.
|
+ // HACK(lukegb): try logging in with no password.
|
||||||
+ deluge.client.auth.login('fixedSingleSignOnPassword!', {
|
+ deluge.client.auth.login('fixedSingleSignOnPassword!', {
|
||||||
+ success: function(result) {
|
+ success: function (result) {
|
||||||
+ if (!result) {
|
+ if (!result) {
|
||||||
+ this.show(true);
|
+ this.show(true);
|
||||||
+ return;
|
+ return;
|
||||||
|
@ -17,14 +17,14 @@ diff -ru deluge-2.0.3-orig/deluge/ui/web/js/deluge-all/LoginWindow.js deluge-2.0
|
||||||
+ this.hide();
|
+ this.hide();
|
||||||
+ passwordField.setRawValue('');
|
+ passwordField.setRawValue('');
|
||||||
+ },
|
+ },
|
||||||
+ failure: function(result) {
|
+ failure: function (result) {
|
||||||
+ this.show(true);
|
+ this.show(true);
|
||||||
+ },
|
+ },
|
||||||
+ scope: this,
|
+ scope: this,
|
||||||
+ });
|
+ });
|
||||||
+ },
|
+ },
|
||||||
+
|
+
|
||||||
show: function(skipCheck) {
|
show: function (skipCheck) {
|
||||||
if (this.firstShow) {
|
if (this.firstShow) {
|
||||||
deluge.client.on('error', this.onClientError, this);
|
deluge.client.on('error', this.onClientError, this);
|
||||||
@@ -81,11 +100,11 @@
|
@@ -81,11 +100,11 @@
|
||||||
|
@ -35,7 +35,7 @@ diff -ru deluge-2.0.3-orig/deluge/ui/web/js/deluge-all/LoginWindow.js deluge-2.0
|
||||||
+ this.tryLoginThenShow();
|
+ this.tryLoginThenShow();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(result) {
|
failure: function (result) {
|
||||||
- this.show(true);
|
- this.show(true);
|
||||||
+ this.tryLoginThenShow();
|
+ this.tryLoginThenShow();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue