Updating method to reset password to use a activation link, fixes #729

This commit is contained in:
BNoiZe
2013-11-30 21:30:24 +01:00
parent cf3de1c657
commit cd342691ca
8 changed files with 219 additions and 38 deletions

View File

@@ -115,8 +115,8 @@ $header
<td>{$lng['admin']['templates']['USERNAME']}</td>
</tr>
<tr>
<td><em>{PASSWORD}</em></td>
<td>{$lng['admin']['templates']['PASSWORD']}</td>
<td><em>{LINK}</em></td>
<td>{$lng['admin']['templates']['LINK']}</td>
</tr>
<tr>
<td colspan="2">

View File

@@ -0,0 +1,37 @@
$header
<article class="login bradius">
<header class="dark">
<img src="{$header_logo}" alt="Froxlor Server Management Panel" />
</header>
<if $message != ''>
<div class="errorcontainer bradius">
<div class="errortitle">{$lng['error']['error']}</div>
<div class="error">$message</div>
</div>
</if>
<section class="loginsec">
<h3>{$lng['pwdreminder']['choosenew']}</h3>
<form method="post" action="{$filename}?action=resetpwd&resetcode={$activationcode}" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['login']['presend']}</legend>
<p>
<label for="new_password">{$lng['changepassword']['new_password']}:</label>&nbsp;
<input type="password" name="new_password" id="new_password" required/>
</p>
<p>
<label for="new_password_confirm">{$lng['changepassword']['new_password_confirm']}:</label>&nbsp;
<input type="password" name="new_password_confirm" id="new_password_confirm" required/>
</p>
<p class="submit">
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="send" value="send" />
<input type="submit" value="{$lng['login']['remind']}" />
</p>
</fieldset>
</form>
<aside>
<a href="index.php">{$lng['login']['backtologin']}</a>
</aside>
</section>
</article>
$footer

View File

@@ -114,8 +114,8 @@ $header
<td>{$lng['admin']['templates']['USERNAME']}</td>
</tr>
<tr>
<td><em>{PASSWORD}</em></td>
<td>{$lng['admin']['templates']['PASSWORD']}</td>
<td><em>{LINK}</em></td>
<td>{$lng['admin']['templates']['LINK']}</td>
</tr>
<tr>
<td colspan="2">

37
templates/Sparkle/login/rpwd.tpl vendored Normal file
View File

@@ -0,0 +1,37 @@
$header
<article class="login bradius">
<header class="dark">
<img src="{$header_logo}" alt="Froxlor Server Management Panel" />
</header>
<if $message != ''>
<div class="errorcontainer bradius">
<div class="errortitle">{$lng['error']['error']}</div>
<div class="error">$message</div>
</div>
</if>
<section class="loginsec">
<h3>{$lng['pwdreminder']['choosenew']}</h3>
<form method="post" action="{$filename}?action=resetpwd&resetcode={$activationcode}" enctype="application/x-www-form-urlencoded">
<fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['login']['presend']}</legend>
<p>
<label for="new_password">{$lng['changepassword']['new_password']}:</label>&nbsp;
<input type="password" name="new_password" id="new_password" required/>
</p>
<p>
<label for="new_password_confirm">{$lng['changepassword']['new_password_confirm']}:</label>&nbsp;
<input type="password" name="new_password_confirm" id="new_password_confirm" required/>
</p>
<p class="submit">
<input type="hidden" name="action" value="$action" />
<input type="hidden" name="send" value="send" />
<input type="submit" value="{$lng['login']['remind']}" />
</p>
</fieldset>
</form>
<aside>
<a href="index.php">{$lng['login']['backtologin']}</a>
</aside>
</section>
</article>
$footer