Skip to content

Commit ce7560b

Browse files
committed
Using $cookieLifetime property from UserConfig.php
This file is now using the $cookieLifetime property from UserConfig.php
1 parent 10d656a commit ce7560b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/forms/LoginForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function login()
8989
{
9090
if ( $this->validate() )
9191
{
92-
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600 * 24 * 30 : 0);
92+
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? Yii::$app->user->cookieLifetime : 0);
9393
}
9494
else
9595
{

0 commit comments

Comments
 (0)