Permalink
Browse files

Fix install error message that appears when entering usernames with u…

…ppercase characters (issue #113). Now it just accepts it and makes it lowercase.
  • Loading branch information...
1 parent f4975af commit b14b8dc6d52302ca5acb72ea3a2a6d76e3573160 @ryancramerdesign committed Jul 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 install.php
View
@@ -378,7 +378,7 @@ protected function adminAccount() {
"<p>The account you create here will have superuser access, so please make sure to create a strong password.</p>" .
"<p><label>Username<br /><input type='text' name='username' value='admin' /></label></p>" .
"<p><label>Password<br /><input type='text' name='userpass' value='' /></label></p>" .
- "<p><label>E-Mail Address<br /><input type='text' name='useremail' value='' /></label></p>";
+ "<p><label>E-Mail Address<br /><input type='email' name='useremail' value='' /></label></p>";
$this->btn("Create Account", 5);
}
@@ -402,7 +402,7 @@ protected function adminAccountSave($wire) {
$user->email = $wire->input->post->useremail;
$pass = htmlentities($wire->input->post->userpass);
- if($user->name != $wire->input->post->username) {
+ if($user->name != strtolower($wire->input->post->username)) {
$this->err("Your username contained characters that aren't accepted at this time. Please try another.");
return $this->adminAccount();
}

0 comments on commit b14b8dc

Please sign in to comment.