Skip to content
Snippets Groups Projects
Commit 5c040730 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Set a standard value for enhanced auth time

parent 6f2e8788
Branches
No related tags found
No related merge requests found
...@@ -394,7 +394,7 @@ class OC_Util { ...@@ -394,7 +394,7 @@ class OC_Util {
// Check password to set session // Check password to set session
if(isset($_POST['password'])) { if(isset($_POST['password'])) {
if (OC_User::login(OC_User::getUser(), $_POST["password"] ) === true) { if (OC_User::login(OC_User::getUser(), $_POST["password"] ) === true) {
$_SESSION['verifiedLogin']=time() + OC_Config::getValue('enhancedauthtime'); $_SESSION['verifiedLogin']=time() + OC_Config::getValue('enhancedauthtime', 15 * 60);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment