Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-16 03:08:05 +0400
committerLukas Reschke <lukas@statuscode.ch>2012-10-16 03:08:05 +0400
commite299c241df23770efbb6f5c833d77edcdeed7410 (patch)
tree078ed78eb927b4b05d80b8b06f318d4b306e9596 /lib/json.php
parentc85c35dfae8fa7135d42c905f955ff71af849b6a (diff)
Make enhanced auth configurable
Diffstat (limited to 'lib/json.php')
-rw-r--r--lib/json.php10
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();
+ }
}
}