We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fca120 commit 9c8d79cCopy full SHA for 9c8d79c
src/Authenticator.php
@@ -99,15 +99,15 @@ public function logout(Token $token = null):void {
99
}
100
101
102
- public function fakeLogin(string $userId, string $redirectTo = "/"):void {
+ public function fakeLogin(string $userId, ?string $email = null, string $redirectTo = "/"):void {
103
$secretIv = new InitVector();
104
$token = new Token($this->secret, $secretIv);
105
$sessionData = new SessionData($token);
106
$this->session->set(SessionData::class, $sessionData);
107
108
$userData = new UserResponseData(
109
$userId,
110
- self::FAKE_EMAIL,
+ $email ?? self::FAKE_EMAIL,
111
);
112
113
$this->session->set(
0 commit comments