feat: complete link/unlink flow for social accts
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
10
app/User.php
10
app/User.php
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user