summaryrefslogtreecommitdiffstats
path: root/lib/public
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:19 -0700
commit69f252a90d6666d5dc55fd46fcc5698da0cec164 (patch)
treee4eeb44bf4e4a5fe975e18d5b80ae9cab87380c6 /lib/public
parent7b60b989b0382134232d8c223dfece8410267a37 (diff)
downloadnextcloud-server-69f252a90d6666d5dc55fd46fcc5698da0cec164.tar.gz
nextcloud-server-69f252a90d6666d5dc55fd46fcc5698da0cec164.zip
feat: Add IPasswordHashBackend
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/User/Backend/IPasswordHashBackend.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/public/User/Backend/IPasswordHashBackend.php b/lib/public/User/Backend/IPasswordHashBackend.php
new file mode 100644
index 00000000000..7bb3b33e1d0
--- /dev/null
+++ b/lib/public/User/Backend/IPasswordHashBackend.php
@@ -0,0 +1,25 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+namespace OCP\User\Backend;
+
+/**
+ * @since 30.0.0
+ */
+interface IPasswordHashBackend {
+ /**
+ * @since 30.0.0
+ */
+ public function getPasswordHash(string $userId): ?string;
+
+ /**
+ * @since 30.0.0
+ */
+ public function setPasswordHash(string $userId, string $passwordHash): bool;
+}