diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 01:08:05 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-16 01:08:05 +0200 |
commit | e299c241df23770efbb6f5c833d77edcdeed7410 (patch) | |
tree | 078ed78eb927b4b05d80b8b06f318d4b306e9596 /lib/json.php | |
parent | c85c35dfae8fa7135d42c905f955ff71af849b6a (diff) | |
download | nextcloud-server-e299c241df23770efbb6f5c833d77edcdeed7410.tar.gz nextcloud-server-e299c241df23770efbb6f5c833d77edcdeed7410.zip |
Make enhanced auth configurable
Diffstat (limited to 'lib/json.php')
-rw-r--r-- | lib/json.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/json.php b/lib/json.php index b828f35f345..cc504907261 100644 --- a/lib/json.php +++ b/lib/json.php @@ -83,10 +83,12 @@ class OC_JSON{ * Check if the user verified the login with his password */ public static function verifyUser() { - if(!isset($_SESSION['verifiedLogin']) OR $_SESSION['verifiedLogin'] < time()) { - $l = OC_L10N::get('lib'); - self::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); - exit(); + if(OC_Config::getValue('enhancedauth', true) === true) { + if(!isset($_SESSION['verifiedLogin']) OR $_SESSION['verifiedLogin'] < time()) { + $l = OC_L10N::get('lib'); + self::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); + exit(); + } } } |