aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IUser.php
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-06-25 15:47:50 -0700
committerChristopher Ng <chrng8@gmail.com>2024-07-08 16:30:52 -0700
commit34d97d45cfae8a4f82bedb54582c1fc8eaf41369 (patch)
treed5631061447d94ba8d8233d22d820fe75f1a2060 /lib/public/IUser.php
parenta330f4c9d558a089bfa389a3227ef0e3c43816d1 (diff)
downloadnextcloud-server-34d97d45cfae8a4f82bedb54582c1fc8eaf41369.tar.gz
nextcloud-server-34d97d45cfae8a4f82bedb54582c1fc8eaf41369.zip
feat: Allow getting/setting the password hash of a user
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public/IUser.php')
-rw-r--r--lib/public/IUser.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/public/IUser.php b/lib/public/IUser.php
index 2ed2d0d87b2..b808e734b95 100644
--- a/lib/public/IUser.php
+++ b/lib/public/IUser.php
@@ -77,6 +77,20 @@ interface IUser {
public function setPassword($password, $recoveryPassword = null);
/**
+ * Get the password hash of the user
+ *
+ * @since 30.0.0
+ */
+ public function getPasswordHash(): ?string;
+
+ /**
+ * Set the password hash of the user
+ *
+ * @since 30.0.0
+ */
+ public function setPasswordHash(string $passwordHash): bool;
+
+ /**
* get the users home folder to mount
*
* @return string