From 705439ca7b2529fb6814c135bb9c00dfb021398f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Sat, 21 Jul 2018 16:19:46 +0200 Subject: [PATCH] Do not bind reset password link if an url is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/js/lostpassword.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index a51b58a657..628ab45e88 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);