Skip to content

Commit 30eab4c

Browse files
committed
minor update
1 parent fdd88aa commit 30eab4c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

login/src/actions/login.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323
$hasher = new PasswordHash(8, FALSE);
2424
$check = $hasher->CheckPassword($password, $stored_pw);
2525

26-
if ($check && !$error)
26+
if ($check && !$error)
2727
{
2828
$uid = (int)$result->id;
2929
$dbh->exec("UPDATE customers set last_login = null WHERE id = $uid");
30-
30+
3131
session_start();
3232
$user = clone($result);
3333
$user->password = '';
3434
$_SESSION['user'] = $user;
3535
$_SESSION['IDCUSTOMER'] = $uid;
36-
36+
3737
header("location: " . DIR . "/menu");
3838
}
39-
else
39+
else
4040
{
4141
session_start();
4242
$_SESSION['result'] = 'error';
43-
$_SESSION['msg'] = 'Usuário ou Senha inválidos. Tente Novamente ou entre em contato com o administrador do sistema.';
43+
$_SESSION['msg'] = 'Username or password incorrect.';
4444
session_commit();
45-
45+
4646
header("location: " . DIR . "/sig-in");
4747
}
4848
?>

0 commit comments

Comments
 (0)