implemented resetting passwords
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -19,5 +19,6 @@
|
||||
<button type="submit">Login…</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<a href="reset-pw«if(data.email)»?email=«data.email»«endif»">Forgot password?</a>
|
||||
</body>
|
||||
</html>
|
||||
33
static/templates/new_password_form.st
Normal file
33
static/templates/new_password_form.st
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
«head()»
|
||||
«userinfo()»
|
||||
|
||||
<body id="login">
|
||||
«navigation()»
|
||||
«messages()»
|
||||
<h1>Set new account password</h1>
|
||||
<form method="POST">
|
||||
<fieldset>
|
||||
|
||||
Dear «if(data.user.name)»«data.user.name»«else»«data.user.email»«endif», you may now set a new password for your account «data.email»:
|
||||
<legend>Login credentials</legend>
|
||||
<label>
|
||||
<input enabled="false" value="«data.user.email»" />
|
||||
Email address
|
||||
</label>
|
||||
<label>
|
||||
<input type="password" name="password" value="" id="password" />
|
||||
Password
|
||||
</label>
|
||||
<label>
|
||||
<input type="password" name="password-repeat" value="" id="password-repeat" />
|
||||
Password (repeat)
|
||||
</label>
|
||||
<input type="hidden" name="token" value="«data.token»" />
|
||||
<button type="submit">Save new password</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<a href="reset-pw">Forgot password?</a>
|
||||
</body>
|
||||
</html>
|
||||
21
static/templates/reset-pw.st
Normal file
21
static/templates/reset-pw.st
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
«head()»
|
||||
<body id="login">
|
||||
«navigation()»
|
||||
«messages()»
|
||||
<h1>Widerhall password recovery</h1>
|
||||
<form method="POST">
|
||||
<fieldset>
|
||||
<legend>Forgot password?</legend>
|
||||
If you have lost or forgot your password, please enter your email below.
|
||||
Upon pressing the "Reset password" button, you will be sent an email with a link allowing you to set a new password.
|
||||
<label>
|
||||
<input type="text" name="email" value="«data.email»" id="email" />
|
||||
Email address
|
||||
</label>
|
||||
<button type="submit">Reset password</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
17
static/templates/reset_link_sent.st
Normal file
17
static/templates/reset_link_sent.st
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
«head()»
|
||||
<body id="login">
|
||||
«navigation()»
|
||||
«messages()»
|
||||
|
||||
<h1>Confirmation</h1>
|
||||
<fieldset>
|
||||
<legend>
|
||||
Link sent
|
||||
</legend>
|
||||
An email was sent to you:<br/>
|
||||
This mail contains a link, that proves you are in control about the resprective mail address. Open the received link in a web browser and you will be able to set a new password.
|
||||
</fieldset>
|
||||
</body>
|
||||
</html>
|
||||
@@ -11,11 +11,11 @@
|
||||
<fieldset>
|
||||
<legend>Suscribe to "«data.list»"</legend>
|
||||
<label>
|
||||
<input type="text" name="name" value="«if(data.name)»«data.name»«else»«data.user.name»«endif»">
|
||||
<input type="text" name="name" value="«if(data.user)»«data.user.name»«else»«data.name»«endif»">
|
||||
Name
|
||||
</label>
|
||||
<label>
|
||||
<input type="text" name="email" value="«if(data.email)»«data.email»«else»«data.user.email»«endif»">
|
||||
<input type="text" name="email" value="«if(data.user)»«data.user.email»«else»«data.email»«endif»">
|
||||
Email
|
||||
</label>
|
||||
<label>
|
||||
|
||||
Reference in New Issue
Block a user