Merge pull request #10325 from nextcloud/lost-password-ldap-fix

Do not bind reset password link if an url is set
This commit is contained in:
Morris Jobke 2018-07-23 15:53:18 +02:00 committed by GitHub
commit 5edf36dc53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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