From 857695ec8720d64af0c9c9ea5c8f07a85a9d0fad Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 13 Jan 2015 13:24:41 +0100 Subject: Return false if the login is canceled in a hook --- lib/private/user/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/user/session.php b/lib/private/user/session.php index 3cd83aae52f..cad6e225b03 100644 --- a/lib/private/user/session.php +++ b/lib/private/user/session.php @@ -199,7 +199,7 @@ class Session implements IUserSession, Emitter { $this->setUser($user); $this->setLoginName($uid); $this->manager->emit('\OC\User', 'postLogin', array($user, $password)); - return true; + return $this->isLoggedIn(); } else { return false; } -- cgit v1.2.3 From 8a9acc5083c02a8b636e9d78e800aacb2a1782bf Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 22 Jan 2015 14:13:02 +0100 Subject: Allow custom error messages for the login page --- core/templates/login.php | 5 +++++ lib/private/util.php | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/core/templates/login.php b/core/templates/login.php index 2198f063dbc..f10a8102180 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -19,6 +19,11 @@ script('core', [ t('Please contact your administrator.')); ?> + +
+
+
+