Skip to content

Commit be70bc2

Browse files
committed
Exception fix
1 parent 7a6deef commit be70bc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/UserVerification.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ protected function generateToken()
8989
* @param \Illuminate\Contracts\Auth\Authenticatable $user
9090
* @param string $subject
9191
* @return bool
92+
*
93+
* @throws \Jrean\UserVerification\Exceptions\ModelNotCompliantException
9294
*/
9395
public function send(AuthenticatableContract $user, $subject = null)
9496
{
9597
if (! $this->isCompliant($user)) {
96-
throw new VerificationException();
98+
throw new ModelNotCompliantException();
9799
}
98100

99101
return (boolean) $this->emailVerificationLink($user, $subject);

0 commit comments

Comments
 (0)