diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-15 17:06:05 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-10-15 18:33:11 +0200 |
commit | b4ec7ca55983374a2365bad92c41eeb63514088d (patch) | |
tree | 37262d493bbd3d0753e805166d1dd730151e3834 /core | |
parent | f3aa004b1c18e0a5fe69112b97cf4ac4fd968cb7 (diff) | |
download | nextcloud-server-b4ec7ca55983374a2365bad92c41eeb63514088d.tar.gz nextcloud-server-b4ec7ca55983374a2365bad92c41eeb63514088d.zip |
chore: Unify user related events to always provide a `getUid` methodchore/migrate-encryption-away-from-hooks
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Events/BeforePasswordResetEvent.php | 7 | ||||
-rw-r--r-- | core/Events/PasswordResetEvent.php | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/core/Events/BeforePasswordResetEvent.php b/core/Events/BeforePasswordResetEvent.php index bd437479150..428ebfeefad 100644 --- a/core/Events/BeforePasswordResetEvent.php +++ b/core/Events/BeforePasswordResetEvent.php @@ -35,6 +35,13 @@ class BeforePasswordResetEvent extends Event { } /** + * @since 31.0.0 + */ + public function getUid(): string { + return $this->user->getUID(); + } + + /** * @since 25.0.0 */ public function getPassword(): string { diff --git a/core/Events/PasswordResetEvent.php b/core/Events/PasswordResetEvent.php index a159c710263..86889951321 100644 --- a/core/Events/PasswordResetEvent.php +++ b/core/Events/PasswordResetEvent.php @@ -35,6 +35,13 @@ class PasswordResetEvent extends Event { } /** + * @since 31.0.0 + */ + public function getUid(): string { + return $this->user->getUID(); + } + + /** * @since 25.0.0 */ public function getPassword(): string { |