diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/lostpassword.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index 2f96911f162..1923b73a179 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -22,7 +22,9 @@ OC.Lostpassword = { if (!$('#user').val().length){ $('#submit').trigger('click'); } else { - if (OC.config.lost_password_link) { + if (OC.config.lost_password_link === 'disabled') { + return; + } else if (OC.config.lost_password_link) { window.location = OC.config.lost_password_link; } else { $.post( |