diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-21 16:19:46 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-23 15:01:03 +0200 |
commit | 705439ca7b2529fb6814c135bb9c00dfb021398f (patch) | |
tree | 604a90940cad41f13d044cc259cbaa204603af10 /core/js | |
parent | 4d060755e52c0f0b027402b765d17c1e7bf5c2e8 (diff) | |
download | nextcloud-server-705439ca7b2529fb6814c135bb9c00dfb021398f.tar.gz nextcloud-server-705439ca7b2529fb6814c135bb9c00dfb021398f.zip |
Do not bind reset password link if an url is set
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/lostpassword.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index a51b58a657c..628ab45e888 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); |