Commit 7ec2b3cf authored by Hugh Davenport's avatar Hugh Davenport

myportfolio: Add forgot password link to login page

The forgot password link is only shown on the side bar on the
main page.

This fix adds that link to all login pages that are arrived by
adding ?login to any URL in mahara

This is work for myportfolio, WR 81451

Bug #798471

Change-Id: I26ef27cd66cfcb8aad8fcce187c7585a074b1d67
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent f5d0fb6c
......@@ -1014,6 +1014,9 @@ function auth_get_login_form() {
'type' => 'submit',
'value' => get_string('login')
),
'register' => array(
'value' => '<div id="login-helplinks">' . '<a href="' . get_config('wwwroot') . 'forgotpass.php" tabindex="2">' . get_string('lostusernamepassword') . '</a></div>'
),
'login_submitted' => array(
'type' => 'hidden',
'value' => 1
......@@ -1054,6 +1057,7 @@ function auth_get_login_form() {
$form = array(
'name' => 'login',
'renderer' => 'div',
'method' => 'post',
'action' => $action,
'plugintype' => 'auth',
......
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