code.gitea.io/gitea@v1.22.3/templates/user/auth/forgot_passwd.tmpl (about) 1 {{template "base/head" .}} 2 <div role="main" aria-label="{{.Title}}" class="page-content user forgot password"> 3 <div class="ui middle very relaxed page grid"> 4 <div class="column"> 5 <form class="ui form ignore-dirty" action="{{.Link}}" method="post"> 6 {{.CsrfTokenHtml}} 7 <h2 class="ui top attached header"> 8 {{ctx.Locale.Tr "auth.forgot_password_title"}} 9 </h2> 10 <div class="ui attached segment"> 11 {{template "base/alert" .}} 12 {{if .IsResetSent}} 13 <p>{{ctx.Locale.Tr "auth.reset_password_mail_sent_prompt" .Email .ResetPwdCodeLives}}</p> 14 {{else if .IsResetRequest}} 15 <div class="required field {{if .Err_Email}}error{{end}}"> 16 <label for="email">{{ctx.Locale.Tr "email"}}</label> 17 <input id="email" name="email" type="email" value="{{.Email}}" autofocus required> 18 </div> 19 <div class="divider"></div> 20 <div class="inline field"> 21 <button class="ui primary button">{{ctx.Locale.Tr "auth.send_reset_mail"}}</button> 22 </div> 23 {{else if .IsResetDisable}} 24 <p class="center"> 25 {{if $.IsAdmin}} 26 {{ctx.Locale.Tr "auth.disable_forgot_password_mail_admin"}} 27 {{else}} 28 {{ctx.Locale.Tr "auth.disable_forgot_password_mail"}} 29 {{end}} 30 </p> 31 {{else if .ResendLimited}} 32 <p class="center">{{ctx.Locale.Tr "auth.resent_limit_prompt"}}</p> 33 {{end}} 34 </div> 35 </form> 36 </div> 37 </div> 38 </div> 39 {{template "base/footer" .}}