summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-11 16:46:43 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-11 17:03:57 +0200
commit0828df5ed4d8488570821b07baaaa7449be3ba64 (patch)
treece837b4b604507015117edbb49ee54a25637402f /core/js
parent7c23414eef64593803d2e9ecc6e4f17985b7ebcc (diff)
downloadnextcloud-server-0828df5ed4d8488570821b07baaaa7449be3ba64.tar.gz
nextcloud-server-0828df5ed4d8488570821b07baaaa7449be3ba64.zip
Disable the API endpoints as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
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(