Skip to content

Commit

Permalink
Fix notices
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Guyomard committed Nov 27, 2016
1 parent f73319e commit 546df80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/classes/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function login($login, $password, $remember_me = true)
'all',
array(
'where' => array(
'user_email' => $login,
'user_email' => (string) $login,
),
)
);
Expand Down
2 changes: 1 addition & 1 deletion framework/classes/controller/admin/login.ctrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function after($response)

protected function post_login()
{
if (\Nos\Auth::login($_POST['email'], $_POST['password'], (bool) \Input::post('remember_me', false))) {
if (\Nos\Auth::login((string) $_POST['email'], (string) $_POST['password'], (bool) \Input::post('remember_me', false))) {
if (\Event::has_events('user_login')) {
\Log::deprecated('Event "user_login" is deprecated, use "admin.loginSuccess" instead.', 'Chiba.2');
\Event::trigger('user_login');
Expand Down

0 comments on commit 546df80

Please sign in to comment.