aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-12 12:39:07 +0200
committerGitHub <noreply@github.com>2017-05-12 12:39:07 +0200
commit4f752ed1fcb338d1f56037426c8eb77c73599cb7 (patch)
tree01f4b267cd5efc2d2615d013088bad726062158c /core/js
parent48a9a4bd81ce80f2b42f56aa3f09a0b1e5e0f46a (diff)
parent0828df5ed4d8488570821b07baaaa7449be3ba64 (diff)
downloadnextcloud-server-4f752ed1fcb338d1f56037426c8eb77c73599cb7.tar.gz
nextcloud-server-4f752ed1fcb338d1f56037426c8eb77c73599cb7.zip
Merge pull request #4809 from nextcloud/downstream-27676
Disable reset password link
Diffstat (limited to 'core/js')
-rw-r--r--core/js/lostpassword.js4
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(