From 0828df5ed4d8488570821b07baaaa7449be3ba64 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 11 May 2017 16:46:43 +0200 Subject: Disable the API endpoints as well Signed-off-by: Joas Schilling --- core/js/lostpassword.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/js') 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( -- cgit v1.2.3