-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added location information to read only version of events.added lost …
…password retrieval
- Loading branch information
1 parent
963d722
commit c6aae43
Showing
6 changed files
with
42 additions
and
2 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
<?PHP | |||
|
|||
$T = new bTemplate('manage', 'forgot_password.tpl'); | |||
|
|||
if(isset($_POST['email'])){ | |||
if(user::lostpassword($_POST['email'])){ | |||
header('location: /'); | |||
}else{ | |||
$T->assign('error', 'There is no use for this email address.'); | |||
} | |||
} | |||
|
|||
$T->run(); |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
{extends 'layout.tpl'} | |||
{block name="content"} | |||
|
|||
<div class="span6 offset3"> | |||
<form class="form-horizontal" method="post"> | |||
<legend>Forgotten Password</legend> | |||
{if isset($error)} | |||
<div class="alert alert-error">{$error}</div> | |||
{/if} | |||
<div class="control-group"> | |||
<label class="control-label" for="inputEmail">Email</label> | |||
<div class="controls"> | |||
<input type="email" name="email" id="inputEmail" placeholder="Email" value="{$email|default:''}"> | |||
</div> | |||
</div> | |||
<div class="control-group"> | |||
<div class="controls"> | |||
<button type="submit" class="btn btn-primary">Forgotten Password</button> | |||
</div> | |||
</div> | |||
</form> | |||
<div><a href="/Register">Register</a></div> | |||
</div> | |||
|
|||
{/block} |
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