Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cse4707-secure-messaging/app/forms/login.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (42 sloc)
1.73 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_GET['error']) && $_GET['error'] == '1') { | |
$error_message = "Incorrect username or password"; | |
} else if (isset($_GET['error']) && $_GET['error'] == '2') { | |
$error_message = "Too many login attempts. Contact the system administrator."; | |
} else { | |
$error_message = ' '; | |
} | |
?> | |
<div class="row login-container valign-wrapper"> | |
<div class="col l6 m8 s 10 offset-l3 offset-m2 offset-l1 valign"> | |
<div id="login-form" class="row scale-transition scale-out"> | |
<div class="col s12 card-panel"> | |
<div class="row login-header"> <h5> Please enter your credentials </h5> </div> | |
<div class="row"> | |
<form class="col s12" action="login.php" method="post"> | |
<div class="row"> | |
<div class="input-field col s12 valign-wrapper"> | |
<i class="material-icons prefix valign">account_circle</i> | |
<input id="username" name="username" type="text" class="validate"> | |
<label for="username">Username</label> | |
</div> | |
<div class="input-field col s12 valign-wrapper"> | |
<i class="material-icons prefix valign">lock</i> | |
<input id="password" name="password" type="password" class="validate"> | |
<label for="password">Password</label> | |
</div> | |
<button | |
class="btn col s4 offset-s4 waves-effect waves-light" | |
type="submit" name="action" | |
> | |
SIGN IN | |
<i class="material-icons right">send</i> | |
</button> | |
<span class="error-message col s12 center-align"> <?php echo $error_message ?> </span> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |