summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-21 16:19:46 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-17 17:07:43 +0200
commitc428c7c2bf83cdbbb1413ac18ab76a7f1c4bac9b (patch)
treea14be38cca3ba2cba281aadb8308512e4bffe2cf
parent47ea2c17fd6a079aedecb6c09a53faae4632555f (diff)
downloadnextcloud-server-c428c7c2bf83cdbbb1413ac18ab76a7f1c4bac9b.tar.gz
nextcloud-server-c428c7c2bf83cdbbb1413ac18ab76a7f1c4bac9b.zip
Do not bind reset password link if an url is set
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--core/js/lostpassword.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index 5f81a96cd4f..d09dfdcb576 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -13,7 +13,7 @@ OC.Lostpassword = {
resetErrorMsg : t('core', 'Password can not be changed. Please contact your administrator.'),
init : function() {
- $('#lost-password').click(OC.Lostpassword.resetLink);
+ $('#lost-password[href=""]').click(OC.Lostpassword.resetLink);
$('#lost-password-back').click(OC.Lostpassword.backToLogin);
$('form[name=login]').submit(OC.Lostpassword.onSendLink);
$('#reset-password #submit').click(OC.Lostpassword.resetPassword);