diff --git a/core/templates/login.php b/core/templates/login.php index 2198f063db..f10a810218 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -19,6 +19,11 @@ script('core', [ t('Please contact your administrator.')); ?> + +
diff --git a/lib/private/util.php b/lib/private/util.php index ec3640503e..6b431bb1b6 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -778,12 +778,14 @@ class OC_Util { /** * @param array $errors + * @param string[] $messages */ - public static function displayLoginPage($errors = array()) { + public static function displayLoginPage($errors = array(), $messages = []) { $parameters = array(); foreach ($errors as $value) { $parameters[$value] = true; } + $parameters['messages'] = $messages; if (!empty($_REQUEST['user'])) { $parameters["username"] = $_REQUEST['user']; $parameters['user_autofocus'] = false;