Skip to content

Commit 6e19bf6

Browse files
committed
$user => $username [Closes #73]
1 parent d698efe commit 6e19bf6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Security/Authenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ interface Authenticator extends IAuthenticator
3838
* Performs an authentication.
3939
* @throws AuthenticationException
4040
*/
41-
function authenticate(string $user, string $password): IIdentity;
41+
function authenticate(string $username, string $password): IIdentity;
4242
}

src/Security/User.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,18 @@ final public function getStorage(): UserStorage
8181

8282
/**
8383
* Conducts the authentication process. Parameters are optional.
84-
* @param string|IIdentity $user name or Identity
84+
* @param string|IIdentity $username name or Identity
8585
* @throws AuthenticationException if authentication was not successful
8686
*/
8787
public function login(
88-
string|IIdentity $user,
88+
string|IIdentity $username,
8989
#[\SensitiveParameter]
9090
?string $password = null,
9191
): void
9292
{
9393
$this->logout(true);
94-
if ($user instanceof IIdentity) {
95-
$this->identity = $user;
94+
if ($username instanceof IIdentity) {
95+
$this->identity = $username;
9696
} else {
9797
$authenticator = $this->getAuthenticator();
9898
$this->identity = $authenticator instanceof Authenticator

0 commit comments

Comments
 (0)