summaryrefslogtreecommitdiff
path: root/app/frontend/controls/LoginBox.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-10-25 18:59:55 +0200
committeremkael <emkael@tlen.pl>2016-10-25 18:59:55 +0200
commit286bf4fec67a94dc7650644d353f469469e67406 (patch)
tree9b7f1e9df2550c80416c3239a2715ed942e883c6 /app/frontend/controls/LoginBox.php
parentf337e63ef70f5f3210577e494e04acf642570ef9 (diff)
* auto-login checkbox in login box
Diffstat (limited to 'app/frontend/controls/LoginBox.php')
-rw-r--r--app/frontend/controls/LoginBox.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/frontend/controls/LoginBox.php b/app/frontend/controls/LoginBox.php
index 1136a79..8ab0c94 100644
--- a/app/frontend/controls/LoginBox.php
+++ b/app/frontend/controls/LoginBox.php
@@ -30,7 +30,8 @@ class LoginBox extends TemplateControl {
public function validatePassword($sender, $param) {
$param->IsValid = $this->Application->getModule('auth')->login(
$this->Login->Text,
- $this->Password->Text
+ $this->Password->Text,
+ $this->Remember->Checked ? PHP_INT_MAX : 0
);
}