Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
26049b7b
Commit
26049b7b
authored
Jan 16, 2009
by
Nigel McNie
Browse files
Remember the username when a user submits the login form.
parent
e4d0b890
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/lib.php
View file @
26049b7b
...
@@ -1442,6 +1442,7 @@ function auth_generate_login_form() {
...
@@ -1442,6 +1442,7 @@ function auth_generate_login_form() {
'type'
=>
'text'
,
'type'
=>
'text'
,
'title'
=>
get_string
(
'username'
)
.
':'
,
'title'
=>
get_string
(
'username'
)
.
':'
,
'description'
=>
get_string
(
'usernamedescription'
),
'description'
=>
get_string
(
'usernamedescription'
),
'defaultvalue'
=>
(
isset
(
$_POST
[
'login_username'
]))
?
$_POST
[
'login_username'
]
:
''
,
'rules'
=>
array
(
'rules'
=>
array
(
'required'
=>
true
'required'
=>
true
)
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment