mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-18 12:16:24 +01:00
* [WIP] Account Lost refactor * [WIP] Refactor account/lost * Update form.html.twig * Use myaac-table class for tables * Set $title to 'Lost Account' * Remove duplicated code - extract lostAccountCooldown function * [WIP] Add csrfProtect() * Refactor code, better $error messages * Formatting * Refactor Add missing password check Formatting * [WIP] Refactor * [WIP] Refactor account lost * [WIP] Refactor account lost - fixes * [WIP] Account lost refactor * Fixes * Add account lost hooks for password strength plugin
91 lines
1.9 KiB
Twig
91 lines
1.9 KiB
Twig
Set new password and e-mail to your account.<br>
|
|
<form action="{{ getLink('account/lost/recovery-key/step-3') }}" method="post">
|
|
|
|
{{ csrf() }}
|
|
|
|
<input type="hidden" name="key" VALUE="{{ key }}">
|
|
|
|
<input type="hidden" name="character" value="">
|
|
<table class="myaac-table" style="width: 100%">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="white">
|
|
<strong>Please enter new password and e-mail</strong>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<label for="nick">
|
|
<strong>Account of character:</strong>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" id="nick" name="nick" value="{{ nick }}" size="40" readonly="readonly">
|
|
</td>
|
|
</tr>
|
|
|
|
{{ hook('HOOK_ACCOUNT_LOST_RECOVERY_KEY_STEP_2_AFTER_CHARACTER') }}
|
|
|
|
<tr>
|
|
<td>
|
|
<label for="password">
|
|
<strong>New password:</strong>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<input type="password" id="password" name="password" value="" size="40">
|
|
</td>
|
|
</tr>
|
|
|
|
{{ hook('HOOK_ACCOUNT_LOST_RECOVERY_KEY_STEP_2_AFTER_PASSWORD') }}
|
|
|
|
<tr>
|
|
<td>
|
|
<label for="password_repeat">
|
|
<strong>Repeat the new password:</strong>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<input type="password" id="password_repeat" name="password_repeat" value="" size="40">
|
|
</td>
|
|
</tr>
|
|
|
|
{{ hook('HOOK_ACCOUNT_LOST_RECOVERY_KEY_STEP_2_AFTER_PASSWORD_REPEAT') }}
|
|
|
|
<tr>
|
|
<td>
|
|
<label for="email">
|
|
<strong>New e-mail address:</strong>
|
|
</label>
|
|
</td>
|
|
<td>
|
|
<input type="text" id="email" name="email" value="" size="40">
|
|
</td>
|
|
</tr>
|
|
|
|
{{ hook('HOOK_ACCOUNT_LOST_RECOVERY_KEY_STEP_2_AFTER_EMAIL') }}
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<table style="width: 100%">
|
|
<tr>
|
|
<td align="center">
|
|
{% set button_name = 'Submit' %}
|
|
{% include('buttons.base.html.twig') %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|