summaryrefslogtreecommitdiffstats
path: root/core/js/lostpassword.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-01 00:45:41 -0300
committerMorris Jobke <hey@morrisjobke.de>2017-05-01 00:45:41 -0300
commit80a5e0a735c76a031dda0dade59c2076154b5267 (patch)
tree372060878da7ce862475e05f5b623861db24d64f /core/js/lostpassword.js
parent4518f6dc642e75f2aee386fc39f5e748859bda5c (diff)
downloadnextcloud-server-80a5e0a735c76a031dda0dade59c2076154b5267.tar.gz
nextcloud-server-80a5e0a735c76a031dda0dade59c2076154b5267.zip
Use dot notation for array access - JSLint recommendation
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/lostpassword.js')
-rw-r--r--core/js/lostpassword.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index 4690b86f995..2f96911f162 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -22,8 +22,8 @@ OC.Lostpassword = {
if (!$('#user').val().length){
$('#submit').trigger('click');
} else {
- if (OC.config['lost_password_link']) {
- window.location = OC.config['lost_password_link'];
+ if (OC.config.lost_password_link) {
+ window.location = OC.config.lost_password_link;
} else {
$.post(
OC.generateUrl('/lostpassword/email'),