如何重置密码

时间:2013-09-30 10:23:30

标签: python html django

我有一个忘记密码的自定义表单。请给我一个关于设置忘记密码表格的编码的想法。 表格是: -

<form action="/forgetpassword/" method="post" id="pass_form" style="display:none">
  <div class="top_b">Can't sign in?</div>    
  <div class="alert alert-info alert-login">
    Please enter your email address. You will receive a link to create a new password via email.
  </div>
  <div class="cnt_b">
    <div class="formRow clea00 Pesos durante un año (12 meses). Ver más.rfix">
      <div class="input-prepend">
        <span class="add-on">@</span><input type="text" placeholder="Your email address" />
      </div>
    </div>
  </div>
  <div class="btm_b tac">
    <button class="btn btn-inverse" type="submit">Request New Password</button>
  </div>  
</form>

1 个答案:

答案 0 :(得分:3)

Django提供了一种请求密码重置的机制。请参阅文档中的the password reset view