diff options
| author | winter | 2025-01-15 20:33:38 +0000 |
|---|---|---|
| committer | winter | 2025-01-15 20:33:38 +0000 |
| commit | 75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch) | |
| tree | 6240a96338f58b5f175e97132a4ce5d804e3b2da /Digitigrade/Model/UserAccount.php | |
| parent | 07df9da970ceaa54c734d73bdb148fa36d42db63 (diff) | |
implement home timeline
Diffstat (limited to 'Digitigrade/Model/UserAccount.php')
| -rw-r--r-- | Digitigrade/Model/UserAccount.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Model/UserAccount.php b/Digitigrade/Model/UserAccount.php index 72a9ce9..d0fa94b 100644 --- a/Digitigrade/Model/UserAccount.php +++ b/Digitigrade/Model/UserAccount.php @@ -59,6 +59,10 @@ class UserAccount extends Model { return $user; } + public static function findByLinkedActor(Actor $actor): ?self { + return self::findWhere('actor = ?', [$actor->id]); + } + public function verifyPassword(#[\SensitiveParameter] $attemptedPassword): bool { return password_verify($attemptedPassword, $this->passwordHash); } |
