Do not bind reset password link if an url is set

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-07-21 16:19:46 +02:00
parent 47ea2c17fd
commit c428c7c2bf
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 1 additions and 1 deletions

View File

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