(Guillermo) code review changes

This commit is contained in:
AntonyAntonio 2016-07-15 17:12:06 -03:00
parent 48fe22c536
commit 466bb85d34
2 changed files with 3 additions and 3 deletions

View File

@ -89,8 +89,8 @@ class LoginController extends Controller {
$sessionCookie->setProperties(array( $sessionCookie->setProperties(array(
'user' => $this->userInstance->getBeanInstance(), 'user' => $this->userInstance->getBeanInstance(),
'token' => $this->rememberToken, 'token' => $this->rememberToken,
'ip' => $_SERVER[REMOTE_ADDR], 'ip' => $_SERVER['REMOTE_ADDR'],
'creationDate' => date("d-m-Y (H:i:s)" 'creationDate' => date('d-m-Y (H:i:s)')
)); ));
$sessionCookie->store(); $sessionCookie->store();
} }

View File

@ -1,6 +1,6 @@
<?php <?php
class sessioncookie extends DataStore { class SessionCookie extends DataStore {
const TABLE = 'session'; const TABLE = 'session';
public static function getProps() { public static function getProps() {