|
@@ -48,7 +48,7 @@ discard block |
|
|
block discarded – undo |
|
48
|
48
|
public function registerUser(\stdClass $userData) : int |
|
49
|
49
|
{ |
|
50
|
50
|
|
|
51
|
|
- $passwordHash = password_hash($userData->password, PASSWORD_DEFAULT ); |
|
|
51
|
+ $passwordHash = password_hash($userData->password, PASSWORD_DEFAULT); |
|
52
|
52
|
|
|
53
|
53
|
$sql = " |
|
54
|
54
|
INSERT INTO $this->userTbl (username, email, password, surname, name, creation_date, last_update, roles_idroles, locked_out, bad_login_tries) |
|
@@ -63,7 +63,7 @@ discard block |
|
|
block discarded – undo |
|
63
|
63
|
$this->bind(':roles_idroles', 1); |
|
64
|
64
|
$this->execute(); |
|
65
|
65
|
|
|
66
|
|
- return (int)$this->dbh->lastInsertId(); |
|
|
66
|
+ return (int) $this->dbh->lastInsertId(); |
|
67
|
67
|
|
|
68
|
68
|
} |
|
69
|
69
|
} |
|
70
|
70
|
\ No newline at end of file |
Please login to merge, or discard this patch.