@@ -30,12 +30,12 @@ |
||
30 | 30 | * @since 14.0.0 |
31 | 31 | */ |
32 | 32 | interface ICheckPasswordBackend { |
33 | - /** |
|
34 | - * @since 14.0.0 |
|
35 | - * |
|
36 | - * @param string $loginName The loginname |
|
37 | - * @param string $password The password |
|
38 | - * @return string|bool The uid on success false on failure |
|
39 | - */ |
|
40 | - public function checkPassword(string $loginName, string $password); |
|
33 | + /** |
|
34 | + * @since 14.0.0 |
|
35 | + * |
|
36 | + * @param string $loginName The loginname |
|
37 | + * @param string $password The password |
|
38 | + * @return string|bool The uid on success false on failure |
|
39 | + */ |
|
40 | + public function checkPassword(string $loginName, string $password); |
|
41 | 41 | } |
@@ -43,61 +43,61 @@ |
||
43 | 43 | * @since 6.0.0 |
44 | 44 | */ |
45 | 45 | interface IUserSession { |
46 | - /** |
|
47 | - * Do a user login |
|
48 | - * |
|
49 | - * @param string $uid the username |
|
50 | - * @param string $password the password |
|
51 | - * @return bool true if successful |
|
52 | - * @since 6.0.0 |
|
53 | - */ |
|
54 | - public function login($uid, $password); |
|
46 | + /** |
|
47 | + * Do a user login |
|
48 | + * |
|
49 | + * @param string $uid the username |
|
50 | + * @param string $password the password |
|
51 | + * @return bool true if successful |
|
52 | + * @since 6.0.0 |
|
53 | + */ |
|
54 | + public function login($uid, $password); |
|
55 | 55 | |
56 | - /** |
|
57 | - * Logs the user out including all the session data |
|
58 | - * Logout, destroys session |
|
59 | - * |
|
60 | - * @return void |
|
61 | - * @since 6.0.0 |
|
62 | - */ |
|
63 | - public function logout(); |
|
56 | + /** |
|
57 | + * Logs the user out including all the session data |
|
58 | + * Logout, destroys session |
|
59 | + * |
|
60 | + * @return void |
|
61 | + * @since 6.0.0 |
|
62 | + */ |
|
63 | + public function logout(); |
|
64 | 64 | |
65 | - /** |
|
66 | - * set the currently active user |
|
67 | - * |
|
68 | - * @param \OCP\IUser|null $user |
|
69 | - * @since 8.0.0 |
|
70 | - */ |
|
71 | - public function setUser($user); |
|
65 | + /** |
|
66 | + * set the currently active user |
|
67 | + * |
|
68 | + * @param \OCP\IUser|null $user |
|
69 | + * @since 8.0.0 |
|
70 | + */ |
|
71 | + public function setUser($user); |
|
72 | 72 | |
73 | - /** |
|
74 | - * get the current active user |
|
75 | - * |
|
76 | - * @return \OCP\IUser|null Current user, otherwise null |
|
77 | - * @since 8.0.0 |
|
78 | - */ |
|
79 | - public function getUser(); |
|
73 | + /** |
|
74 | + * get the current active user |
|
75 | + * |
|
76 | + * @return \OCP\IUser|null Current user, otherwise null |
|
77 | + * @since 8.0.0 |
|
78 | + */ |
|
79 | + public function getUser(); |
|
80 | 80 | |
81 | - /** |
|
82 | - * Checks whether the user is logged in |
|
83 | - * |
|
84 | - * @return bool if logged in |
|
85 | - * @since 8.0.0 |
|
86 | - */ |
|
87 | - public function isLoggedIn(); |
|
81 | + /** |
|
82 | + * Checks whether the user is logged in |
|
83 | + * |
|
84 | + * @return bool if logged in |
|
85 | + * @since 8.0.0 |
|
86 | + */ |
|
87 | + public function isLoggedIn(); |
|
88 | 88 | |
89 | - /** |
|
90 | - * get getImpersonatingUserID |
|
91 | - * |
|
92 | - * @return string|null |
|
93 | - * @since 18.0.0 |
|
94 | - */ |
|
95 | - public function getImpersonatingUserID(): ?string; |
|
89 | + /** |
|
90 | + * get getImpersonatingUserID |
|
91 | + * |
|
92 | + * @return string|null |
|
93 | + * @since 18.0.0 |
|
94 | + */ |
|
95 | + public function getImpersonatingUserID(): ?string; |
|
96 | 96 | |
97 | - /** |
|
98 | - * set setImpersonatingUserID |
|
99 | - * |
|
100 | - * @since 18.0.0 |
|
101 | - */ |
|
102 | - public function setImpersonatingUserID(bool $useCurrentUser = true): void; |
|
97 | + /** |
|
98 | + * set setImpersonatingUserID |
|
99 | + * |
|
100 | + * @since 18.0.0 |
|
101 | + */ |
|
102 | + public function setImpersonatingUserID(bool $useCurrentUser = true): void; |
|
103 | 103 | } |