add email signup flow
This commit is contained in:
parent
9945163a2f
commit
3dc9204979
27 changed files with 629 additions and 24 deletions
|
|
@ -36,9 +36,14 @@ class AuthenticateUser
|
|||
throw new UnauthorizedException('invalid credentials');
|
||||
}
|
||||
|
||||
$passwordHash = $user->getPasswordHash();
|
||||
if ($passwordHash === null) {
|
||||
throw new UnauthorizedException('invalid credentials');
|
||||
}
|
||||
|
||||
$passwordMatches = $this->hasher->verify(
|
||||
$request->password,
|
||||
$user->getPasswordHash(),
|
||||
$passwordHash,
|
||||
);
|
||||
if (! $passwordMatches) {
|
||||
throw new UnauthorizedException('invalid credentials');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue