summaryrefslogtreecommitdiff
path: root/protected/models/LoginForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/models/LoginForm.php')
-rw-r--r--protected/models/LoginForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/protected/models/LoginForm.php b/protected/models/LoginForm.php
index eb36e4a..3904698 100644
--- a/protected/models/LoginForm.php
+++ b/protected/models/LoginForm.php
@@ -67,7 +67,7 @@ class LoginForm extends CFormModel
}
if($this->_identity->errorCode===UserIdentity::ERROR_NONE)
{
- $duration=$this->rememberMe ? 3600*24*30 : 0; // 30 days
+ $duration=$this->rememberMe ? 3600*24*1 : 0; // 1 days
Yii::app()->user->login($this->_identity,$duration);
return true;
}