Skip to content

Commit

Permalink
Coding style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jan 1, 2014
1 parent 6804ed7 commit b5ecee1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion _installation/01-create-database.sql
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CREATE DATABASE IF NOT EXISTS `login`;
CREATE DATABASE IF NOT EXISTS `login`;
2 changes: 1 addition & 1 deletion _installation/02-create-and-fill-users-table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ CREATE TABLE IF NOT EXISTS `login`.`users` (
PRIMARY KEY (`user_id`),
UNIQUE KEY `user_name` (`user_name`),
UNIQUE KEY `user_email` (`user_email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='user data';
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='user data';
2 changes: 1 addition & 1 deletion views/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<Files ~ "\.(htaccess|php)$">
order allow,deny
deny from all
</Files>
</Files>
2 changes: 1 addition & 1 deletion views/logged_in.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Try to close this browser tab and open it again. Still logged in! ;)

<!-- because people were asking: "index.php?logout" is just my simplified form of "index.php?logout=true" -->
<a href="index.php?logout">Logout</a>
<a href="index.php?logout">Logout</a>
20 changes: 10 additions & 10 deletions views/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
?>

<!-- register form -->
<form method="post" action="register.php" name="registerform">
<form method="post" action="register.php" name="registerform">

<!-- the user name input field uses a HTML5 pattern check -->
<label for="login_input_username">Username (only letters and numbers, 2 to 64 characters)</label>
<input id="login_input_username" class="login_input" type="text" pattern="[a-zA-Z0-9]{2,64}" name="user_name" required />

<!-- the email input field uses a HTML5 email type check -->
<label for="login_input_email">User's email</label>
<input id="login_input_email" class="login_input" type="email" name="user_email" required />
<label for="login_input_email">User's email</label>
<input id="login_input_email" class="login_input" type="email" name="user_email" required />

<label for="login_input_password_new">Password (min. 6 characters)</label>
<input id="login_input_password_new" class="login_input" type="password" name="user_password_new" pattern=".{6,}" required autocomplete="off" />
<input id="login_input_password_new" class="login_input" type="password" name="user_password_new" pattern=".{6,}" required autocomplete="off" />

<label for="login_input_password_repeat">Repeat password</label>
<input id="login_input_password_repeat" class="login_input" type="password" name="user_password_repeat" pattern=".{6,}" required autocomplete="off" />
<input id="login_input_password_repeat" class="login_input" type="password" name="user_password_repeat" pattern=".{6,}" required autocomplete="off" />
<input type="submit" name="register" value="Register" />

</form>

<!-- backlink -->
Expand Down

0 comments on commit b5ecee1

Please sign in to comment.