File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 23
23
$ hasher = new PasswordHash (8 , FALSE );
24
24
$ check = $ hasher ->CheckPassword ($ password , $ stored_pw );
25
25
26
- if ($ check && !$ error )
26
+ if ($ check && !$ error )
27
27
{
28
28
$ uid = (int )$ result ->id ;
29
29
$ dbh ->exec ("UPDATE customers set last_login = null WHERE id = $ uid " );
30
-
30
+
31
31
session_start ();
32
32
$ user = clone ($ result );
33
33
$ user ->password = '' ;
34
34
$ _SESSION ['user ' ] = $ user ;
35
35
$ _SESSION ['IDCUSTOMER ' ] = $ uid ;
36
-
36
+
37
37
header ("location: " . DIR . "/menu " );
38
38
}
39
- else
39
+ else
40
40
{
41
41
session_start ();
42
42
$ _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 . ' ;
44
44
session_commit ();
45
-
45
+
46
46
header ("location: " . DIR . "/sig-in " );
47
47
}
48
48
?>
You can’t perform that action at this time.
0 commit comments