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/change_password.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (40 sloc)
1.58 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'])) { | |
$error_message = "Incorrect password"; | |
} 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> Need to change your password? </h5> </div> | |
<div class="row"> | |
<form class="col s12" action="change_password.php" method="post"> | |
<div class="row"> | |
<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">Current password</label> | |
</div> | |
<div class="input-field col s12 valign-wrapper"> | |
<i class="material-icons prefix valign">lock</i> | |
<input id="new_password" name="new_password" type="password" class="validate"> | |
<label for="new_password">New password</label> | |
</div> | |
<button | |
class="btn col s4 offset-s4 waves-effect waves-light" | |
type="submit" name="action" | |
> | |
Change | |
<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> |