summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/public/User/Events/BeforeUserLoggedInEvent.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/User/Events/BeforeUserLoggedInEvent.php b/lib/public/User/Events/BeforeUserLoggedInEvent.php
index c6eb3fbbf1b..dca5c16518b 100644
--- a/lib/public/User/Events/BeforeUserLoggedInEvent.php
+++ b/lib/public/User/Events/BeforeUserLoggedInEvent.php
@@ -34,7 +34,7 @@ use OCP\IUser;
*/
class BeforeUserLoggedInEvent extends Event {
- /** @var IUser */
+ /** @var string */
private $username;
/** @var string */
@@ -50,9 +50,11 @@ class BeforeUserLoggedInEvent extends Event {
}
/**
+ * returns the login name, which must not necessarily match to a user ID
+ *
* @since 18.0.0
*/
- public function getUsername(): IUser {
+ public function getUsername(): string {
return $this->username;
}