Skip to content

Commit ae69725

Browse files
committed
Separate Http Base Action and REST Classes
1 parent 3f824ac commit ae69725

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Auth/Authentication/JWTAuthentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public function isLogged(): bool
213213
*/
214214
public function login(
215215
array $credentials = [],
216-
bool $remeberMe = false,
216+
bool $rememberMe = false,
217217
bool $withPassword = true
218218
): array {
219219
if (isset($credentials['username']) === false) {

src/Auth/Authentication/SessionAuthentication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function getId(): int|string
123123
throw new AccountNotFoundException('User not logged', 401);
124124
}
125125

126-
$id = $this->session->get('user.id');
126+
$id = $this->session->get('auth.user.id');
127127

128128
return $id;
129129
}
@@ -141,7 +141,7 @@ public function isLogged(): bool
141141
*/
142142
public function login(
143143
array $credentials = [],
144-
bool $remeberMe = false,
144+
bool $rememberMe = false,
145145
bool $withPassword = true
146146
): array {
147147
if (!isset($credentials['username'])) {

src/Auth/AuthenticationInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ interface AuthenticationInterface
6161
/**
6262
* Authenticate the user
6363
* @param array<string, mixed> $credentials
64-
* @param bool $remeberMe
64+
* @param bool $rememberMe
6565
* @param bool $withPassword wether to use password to login
6666
* @return array<string, mixed>
6767
*
@@ -72,7 +72,7 @@ interface AuthenticationInterface
7272
*/
7373
public function login(
7474
array $credentials = [],
75-
bool $remeberMe = false,
75+
bool $rememberMe = false,
7676
bool $withPassword = true
7777
): array;
7878

0 commit comments

Comments
 (0)