Set a standard value for enhanced auth time
This commit is contained in:
parent
6f2e8788ca
commit
5c0407306c
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue