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 #20 from dead-horse/master
修复今天的几个问题,修改找回密码逻辑,修改登录跳转逻辑;发送邮件时,不等待邮件发送成功先通知用户,避免用户等待时间过长。邮件压入队列,如果失败1分钟后再次发送
- Loading branch information
Showing
5 changed files
with
216 additions
and
53 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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<%- partial('sign/sidebar') %> | ||
|
||
<div id='content'> | ||
<div class='panel'> | ||
<div class='header'> | ||
<ul class='breadcrumb'> | ||
<li><a href='/'>主页</a><span class='divider'>/</span></li> | ||
<li class='active'>重置密码</li> | ||
</ul> | ||
</div> | ||
<div class='inner'> | ||
<div class='sep10'></div> | ||
<div class='sep10'></div> | ||
<% if(locals.error){ %> | ||
<div class="alert alert-error"> | ||
<a class="close" data-dismiss="alert" href="#">×</a> | ||
<strong><%= error %></strong> | ||
</div> | ||
<% } %> | ||
<form id='signin_form' class='form-horizontal' action='/reset_pass' method='post'> | ||
<div class='control-group'> | ||
<label class='control-label' for='psw'>新密码</label> | ||
<div class='controls'> | ||
<input class='input-xlarge' id='psw' name='psw' size='30' type='password' /> | ||
</div> | ||
</div> | ||
<div class='control-group'> | ||
<label class='control-label' for='repsw'>确认密码</label> | ||
<div class='controls'> | ||
<input class='input-xlarge' id='repsw' name='repsw' size='30' type='password' /> | ||
</div> | ||
</div> | ||
<input type='hidden' name='_csrf' value='<%= csrf %>' /> | ||
<input type='hidden' name='name' id='name' value='<%= name%>'> | ||
<input type='hidden' name='key' id='key' value='<%= key%>'> | ||
<div class='form-actions'> | ||
<input type='submit' class='btn' value='确定' /> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> |