Commit 08884f5b authored by Hugh Davenport's avatar Hugh Davenport
Browse files

Add a label to the extra login links



Change-Id: I525f692dae8546c31f8789e21b9abace354f5a93
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 72542c45
...@@ -1071,6 +1071,13 @@ function auth_get_login_form() { ...@@ -1071,6 +1071,13 @@ function auth_get_login_form() {
$showbasicform = true; $showbasicform = true;
} }
} }
if (!empty($extraelements) && $showbasicform) {
$loginlabel = array(
'type' => 'markup',
'value' => '<label>'.get_string('orloginvia') . '</label>'
);
$extraelements = array_merge(array('label' => $loginlabel), $extraelements);
}
$extraelements = array( $extraelements = array(
'login_extra' => array( 'login_extra' => array(
'type' => 'container', 'type' => 'container',
...@@ -1789,6 +1796,13 @@ function auth_generate_login_form() { ...@@ -1789,6 +1796,13 @@ function auth_generate_login_form() {
$showbasicform = true; $showbasicform = true;
} }
} }
if (!empty($extraelements) && $showbasicform) {
$loginlabel = array(
'type' => 'markup',
'value' => '<label>'.get_string('orloginvia') . '</label>'
);
$extraelements = array_merge(array('label' => $loginlabel), $extraelements);
}
$extraelements = array( $extraelements = array(
'login_extra' => array( 'login_extra' => array(
'type' => 'container', 'type' => 'container',
......
...@@ -334,6 +334,7 @@ $string['loggedoutok'] = 'You have been logged out successfully'; ...@@ -334,6 +334,7 @@ $string['loggedoutok'] = 'You have been logged out successfully';
$string['login'] = 'Login'; $string['login'] = 'Login';
$string['loginfailed'] = 'You have not provided the correct credentials to log in. Please check your username and password are correct.'; $string['loginfailed'] = 'You have not provided the correct credentials to log in. Please check your username and password are correct.';
$string['loginto'] = 'Log in to %s'; $string['loginto'] = 'Log in to %s';
$string['orloginvia'] = 'Or login via:';
$string['newpassword'] = 'New password'; $string['newpassword'] = 'New password';
$string['nosessionreload'] = 'Reload the page to log in'; $string['nosessionreload'] = 'Reload the page to log in';
$string['oldpassword'] = 'Current password'; $string['oldpassword'] = 'Current password';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment