Finish new reset password, etc.
parent
5605af973b
commit
7af7584d25
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"language.fileExtensions": {
|
|
||||||
"tmpl": "html"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +1,39 @@
|
|||||||
{{template "base/head" .}}
|
{{template "ng/base/head" .}}
|
||||||
{{template "base/navbar" .}}
|
{{template "ng/base/header" .}}
|
||||||
<div id="body" class="container">
|
<div id="sign-wrapper">
|
||||||
<form action="/user/activate" method="post" class="form-horizontal card" id="login-card">
|
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/activate" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<h3>Activate Your Account</h3>
|
<div class="panel-header">
|
||||||
|
<h2>{{.i18n.Tr "auth.active_your_account"}}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="panel-content">
|
||||||
{{if .IsActivatePage}}
|
{{if .IsActivatePage}}
|
||||||
{{if .ServiceNotEnabled}}
|
{{if .ServiceNotEnabled}}
|
||||||
<p>Sorry, Register Mail Confirmation has been disabled.</p>
|
<p>{{.i18n.Tr "auth.disable_register_mail"}}</p>
|
||||||
{{else if .ResendLimited}}
|
{{else if .ResendLimited}}
|
||||||
<p>Sorry, you are sending an activation e-mail too frequently. Please wait 3 minutes.</p>
|
<p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>A new confirmation e-mail has been sent to <b>{{.SignedUser.Email}}</b>, please check your inbox within the next {{.Hours}} hours to complete your registration.</p>
|
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}</p>
|
||||||
<hr/>
|
<hr/>
|
||||||
<a href="http://{{Mail2Domain .SignedUser.Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
|
<label></label>
|
||||||
|
<a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if .IsSendRegisterMail}}
|
{{if .IsSendRegisterMail}}
|
||||||
<p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within the next {{.Hours}} hours to complete your registration.</p>
|
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p>
|
||||||
<hr/>
|
<hr/>
|
||||||
<a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
|
<label></label>
|
||||||
|
<a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a>
|
||||||
{{else if .IsActivateFailed}}
|
{{else if .IsActivateFailed}}
|
||||||
<p>Sorry, your confirmation code has exipired or not valid.</p>
|
<p>{{.i18n.Tr "auth.invalid_code"}}</p>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>Hi, {{.SignedUser.Name}}, you have an unconfirmed email address(<b>{{.SignedUser.Email}}</b>). If you haven't received a confirmation e-mail or need to resend a new one, please click on the button below.</p>
|
<p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="form-group">
|
<label></label>
|
||||||
<div class="col-md-offset-4 col-md-6">
|
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.resend_mail"}}</button>
|
||||||
<button type="submit" class="btn btn-lg btn-primary">Click here to resend your activation e-mail</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "ng/base/footer" .}}
|
||||||
|
@ -1,32 +1,32 @@
|
|||||||
{{template "base/head" .}}
|
{{template "ng/base/head" .}}
|
||||||
{{template "base/navbar" .}}
|
{{template "ng/base/header" .}}
|
||||||
<div id="body" class="container">
|
<div id="sign-wrapper">
|
||||||
<form action="/user/forget_password" method="post" class="form-horizontal card" id="login-card">
|
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/forget_password" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<h3>Reset Your Password</h3>
|
<div class="panel-header">
|
||||||
{{template "base/alert" .}}
|
<h2>{{.i18n.Tr "auth.forgot_password"}}</h2>
|
||||||
|
</div>
|
||||||
|
<div class="panel-content">
|
||||||
|
{{template "ng/base/alert" .}}
|
||||||
{{if .IsResetSent}}
|
{{if .IsResetSent}}
|
||||||
<p>A confirmation e-mail has been sent to <b>{{.Email}}</b>, please check your inbox within {{.Hours}} hours.</p>
|
<p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p>
|
||||||
<hr/>
|
<hr/>
|
||||||
<a href="http://{{Mail2Domain .Email}}" class="btn btn-lg btn-success">Sign in to your e-mail</a>
|
<label></label>
|
||||||
|
<a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a>
|
||||||
{{else if .IsResetRequest}}
|
{{else if .IsResetRequest}}
|
||||||
<div class="form-group {{if .Err_Email}}has-error has-feedback{{end}}">
|
<div class="field">
|
||||||
<label class="col-md-3 control-label">Email: </label>
|
<label class="req" for="email">{{.i18n.Tr "email"}}</label>
|
||||||
<div class="col-md-7">
|
<input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.email}}"required/>
|
||||||
<input name="email" class="form-control" placeholder="Type your e-mail address" required="required">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="form-group">
|
<label></label>
|
||||||
<div class="col-md-offset-4 col-md-6">
|
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.send_reset_mail"}}</button>
|
||||||
<button type="submit" class="btn btn-lg btn-primary">Click here to send resend confirmation e-mail</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{else if .IsResetDisable}}
|
{{else if .IsResetDisable}}
|
||||||
<p>Sorry, mail service is not enabled.</p>
|
<p>{{.i18n.Tr "auth.disable_register_mail"}}</p>
|
||||||
{{else if .ResendLimited}}
|
{{else if .ResendLimited}}
|
||||||
<p>Sorry, you are sending an e-mail too frequently, please wait another 3 minutes and try again.</p>
|
<p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "ng/base/footer" .}}
|
||||||
|
@ -1,26 +1,25 @@
|
|||||||
{{template "base/head" .}}
|
{{template "ng/base/head" .}}
|
||||||
{{template "base/navbar" .}}
|
{{template "ng/base/header" .}}
|
||||||
<div id="body" class="container">
|
<div id="sign-wrapper">
|
||||||
<form action="/user/reset_password?code={{.Code}}" method="post" class="form-horizontal card" id="login-card">
|
<form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/reset_password?code={{.Code}}" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<h3>Reset Your Pasword</h3>
|
<div class="panel-header">
|
||||||
{{template "base/alert" .}}
|
<h2>{{.i18n.Tr "auth.reset_password"}}</h2>
|
||||||
{{if .IsResetForm}}
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-md-4 control-label">Password: </label>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required">
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="panel-content">
|
||||||
|
{{template "ng/base/alert" .}}
|
||||||
|
{{if .IsResetForm}}
|
||||||
|
<div class="field">
|
||||||
|
<label class="req" for="password">{{.i18n.Tr "password"}}</label>
|
||||||
|
<input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/>
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="form-group">
|
<label></label>
|
||||||
<div class="col-md-offset-4 col-md-6">
|
<button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.reset_password_helper"}}</button>
|
||||||
<button type="submit" class="btn btn-lg btn-primary">Click here to reset your password</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>Sorry, your confirmation code has expired or is not valid.</p>
|
<p>{{.i18n.Tr "auth.invalid_code"}}</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{template "base/footer" .}}
|
{{template "ng/base/footer" .}}
|
||||||
|
Loading…
Reference in New Issue