feat: complete link/unlink flow for social accts

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
2022-10-21 07:12:09 +01:00
parent 2901f76a11
commit 376350cda2
7 changed files with 131 additions and 31 deletions

View File

@@ -190,4 +190,14 @@ class User extends Authenticatable implements MustVerifyEmail
return !is_null($this->discord_token) && !is_null($this->discord_refresh_token);
}
/**
* Check if user has a password
*
* @return bool
*/
public function hasPassword(): bool {
return !is_null($this->password);
}
}