This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from nodes-vapor/develop
Reset pw now actually works
- Loading branch information
Showing
3 changed files
with
98 additions
and
111 deletions.
There are no files selected for viewing
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
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
178 changes: 89 additions & 89 deletions
178
Sources/JWTKeychain/Resources/Views/ResetPassword/form.leaf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,99 @@ | ||
<html> | ||
<head> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" | ||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-offset-4 col-sm-4"> | ||
|
||
<div id="reset-password" class="panel panel-default"> | ||
<div class="panel-body"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title text-center">Reset password</h3> | ||
</div> | ||
|
||
<!--Error--> | ||
#if(request.storage._flash.error) { | ||
<div class="alert alert-danger alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<span class="fa fa-exclamation-circle"></span> | ||
#(request.storage._flash.error) | ||
</div> | ||
} | ||
|
||
<!--Success--> | ||
#if(request.storage._flash.success) { | ||
<div class="alert alert-success alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<span class="fa fa-check-circle"></span> | ||
#(request.storage._flash.success) | ||
</div> | ||
} | ||
|
||
<!--Warning--> | ||
#if(request.storage._flash.warning) { | ||
<div class="alert alert-warning alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
#(request.storage._flash.warning) | ||
</div> | ||
} | ||
|
||
<!--Info--> | ||
#if(request.storage._flash.info) { | ||
<div class="alert alert-info alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
#(request.storage._flash.info) | ||
</div> | ||
} | ||
|
||
<form method="POST" action="/reset-password/change"> | ||
<input type="hidden" name="token" value="#(token)"> | ||
<head> | ||
<!-- Latest compiled and minified CSS --> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" | ||
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | ||
</head> | ||
|
||
<body> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-offset-4 col-sm-4"> | ||
|
||
<div class="form-group action-wrapper"> | ||
<label for="email">E-mail</label> | ||
<input type="email" id="email" class="form-control" name="email" required placeholder="Insert email" | ||
value='#valueForField(fieldset, "email")'/> | ||
#ifFieldHasErrors(fieldset, "email") { <ul class="errorlist"> } | ||
#loopErrorsForField(fieldset, "email", "message") { <li>#(message)</li> } | ||
#ifFieldHasErrors(fieldset, "email") { </ul> } | ||
<div id="reset-password" class="panel panel-default"> | ||
<div class="panel-body"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title text-center">Reset password</h3> | ||
</div> | ||
|
||
<!--Error--> | ||
#if(request.storage._flash.error) { | ||
<div class="alert alert-danger alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<span class="fa fa-exclamation-circle"></span> | ||
#(request.storage._flash.error) | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password">New password</label> | ||
<input type="password" id="password" class="form-control" name="password" required | ||
placeholder="Insert password"/> | ||
#ifFieldHasErrors(fieldset, "password") { <ul class="errorlist"> } | ||
#loopErrorsForField(fieldset, "password", "message") { <li>#(message)</li> } | ||
#ifFieldHasErrors(fieldset, "password") { </ul> } | ||
} | ||
|
||
<!--Success--> | ||
#if(request.storage._flash.success) { | ||
<div class="alert alert-success alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
<span class="fa fa-check-circle"></span> | ||
#(request.storage._flash.success) | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password_confirmation">New password confirmation</label> | ||
<input type="password" id="password_confirmation" class="form-control" name="password_confirmation" required | ||
placeholder="Insert password"/> | ||
#ifFieldHasErrors(fieldset, "password_confirmation") { <ul class="errorlist"> } | ||
#loopErrorsForField(fieldset, "password_confirmation", "message") { <li>#(message)</li> } | ||
#ifFieldHasErrors(fieldset, "password_confirmation") { </ul> } | ||
} | ||
|
||
<!--Warning--> | ||
#if(request.storage._flash.warning) { | ||
<div class="alert alert-warning alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
#(request.storage._flash.warning) | ||
</div> | ||
|
||
<div class="form-group"> | ||
<input type="submit" class="btn btn-primary form-control" value="Reset password"/> | ||
} | ||
|
||
<!--Info--> | ||
#if(request.storage._flash.info) { | ||
<div class="alert alert-info alert-dismissible fade in to-be-animated-in" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
#(request.storage._flash.info) | ||
</div> | ||
</form> | ||
} | ||
|
||
<form method="POST" action="/reset-password/change"> | ||
<input type="hidden" name="token" value="#(token)"> | ||
|
||
<div class="form-group action-wrapper"> | ||
<label for="email">E-mail</label> | ||
<input type="email" id="email" class="form-control" name="email" required placeholder="Insert email" | ||
value='#valueForField(fieldset, "email")'/> | ||
#ifFieldHasErrors(fieldset, "email") { <ul class="errorlist"> } | ||
#loopErrorsForField(fieldset, "email", "message") { <li>#(message)</li> } | ||
#ifFieldHasErrors(fieldset, "email") { </ul> } | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password">New password</label> | ||
<input type="password" id="password" class="form-control" name="password" required | ||
placeholder="Insert password"/> | ||
#ifFieldHasErrors(fieldset, "password") { <ul class="errorlist"> } | ||
#loopErrorsForField(fieldset, "password", "message") { <li>#(message)</li> } | ||
#ifFieldHasErrors(fieldset, "password") { </ul> } | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password_confirmation">New password confirmation</label> | ||
<input type="password" id="password_confirmation" class="form-control" name="password_confirmation" required | ||
placeholder="Insert password"/> | ||
#ifFieldHasErrors(fieldset, "password_confirmation") { <ul class="errorlist"> } | ||
#loopErrorsForField(fieldset, "password_confirmation", "message") { <li>#(message)</li> } | ||
#ifFieldHasErrors(fieldset, "password_confirmation") { </ul> } | ||
</div> | ||
|
||
<div class="form-group"> | ||
<input type="submit" class="btn btn-primary form-control" value="Reset password"/> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</body> | ||
</html> |