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:
parent
4d060755e5
commit
705439ca7b
|
@ -13,7 +13,7 @@ OC.Lostpassword = {
|
||||||
resetErrorMsg : t('core', 'Password can not be changed. Please contact your administrator.'),
|
resetErrorMsg : t('core', 'Password can not be changed. Please contact your administrator.'),
|
||||||
|
|
||||||
init : function() {
|
init : function() {
|
||||||
$('#lost-password').click(OC.Lostpassword.resetLink);
|
$('#lost-password[href=""]').click(OC.Lostpassword.resetLink);
|
||||||
$('#lost-password-back').click(OC.Lostpassword.backToLogin);
|
$('#lost-password-back').click(OC.Lostpassword.backToLogin);
|
||||||
$('form[name=login]').submit(OC.Lostpassword.onSendLink);
|
$('form[name=login]').submit(OC.Lostpassword.onSendLink);
|
||||||
$('#reset-password #submit').click(OC.Lostpassword.resetPassword);
|
$('#reset-password #submit').click(OC.Lostpassword.resetPassword);
|
||||||
|
|
Loading…
Reference in New Issue