summaryrefslogtreecommitdiff
path: root/app/Model/LastLogin.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-31 19:51:59 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-31 19:51:59 -0500
commit0bc51620c731e7cfd10db5e064fc04693205b21c (patch)
treed73ea3a352561374d8f81eedb6a8dc1dbfdda544 /app/Model/LastLogin.php
parent505f62e6cafec1b9ccfc52df4c5441d2568a0ba4 (diff)
Add unit tests for last automatic actions
Diffstat (limited to 'app/Model/LastLogin.php')
-rw-r--r--app/Model/LastLogin.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/Model/LastLogin.php b/app/Model/LastLogin.php
index f5be020e..a1734819 100644
--- a/app/Model/LastLogin.php
+++ b/app/Model/LastLogin.php
@@ -39,14 +39,14 @@ class LastLogin extends Base
$this->cleanup($user_id);
return $this->db
- ->table(self::TABLE)
- ->insert(array(
- 'auth_type' => $auth_type,
- 'user_id' => $user_id,
- 'ip' => $ip,
- 'user_agent' => substr($user_agent, 0, 255),
- 'date_creation' => time(),
- ));
+ ->table(self::TABLE)
+ ->insert(array(
+ 'auth_type' => $auth_type,
+ 'user_id' => $user_id,
+ 'ip' => $ip,
+ 'user_agent' => substr($user_agent, 0, 255),
+ 'date_creation' => time(),
+ ));
}
/**