password reset localization

This commit is contained in:
Roman Hergenreder 2022-12-10 16:35:22 +01:00
parent c0997e0224
commit 4bfd6754cf
3 changed files with 27 additions and 12 deletions

@ -13,6 +13,10 @@ return [
"resend_confirm_email_title" => "Bestätigungsmail erneut senden",
"resend_confirm_email_description" => "Eine neue Bestätigungsmail anfordern um die Accounterstellung abzuschließen",
"resend_confirm_email_form_title" => "Geben Sie Ihre E-Mailadresse ein, um eine neue Bestätigungsmail zu erhalten",
"reset_password_title" => "Password zurücksetzen",
"reset_password_description" => "Fordern Sie ein Passwort-Reset an, sobald Sie eine E-Mail erhalten, können Sie ein neues Passwort wählen",
"reset_password_form_title" => "Ein neues Passwort wählen",
"reset_password_request_form_title" => "Geben Sie Ihre E-Mail Adresse ein um ein Passwort-Reset Token zu erhalten",
"form_title" => "Bitte geben Sie ihre Daten ein",
"username" => "Benutzername",
"username_or_email" => "Benutzername oder E-Mail",

@ -13,6 +13,10 @@ return [
"resend_confirm_email_title" => "Resend Confirm Email",
"resend_confirm_email_description" => "Request a new confirmation email to finalize the account creation",
"resend_confirm_email_form_title" => "Enter your E-Mail address, to receive a new e-mail to confirm your registration.",
"reset_password_title" => "Reset Password",
"reset_password_description" => "Request a password reset, once you got the e-mail address, you can choose a new password",
"reset_password_form_title" => "Choose a new password",
"reset_password_request_form_title" => "Enter your E-Mail address, to receive a password reset token.",
"form_title" => "Please fill with your details",
"username" => "Username",
"username_or_email" => "Username or E-Mail",

@ -1,56 +1,63 @@
{% extends "account/account_base.twig" %}
{% set view_title = 'Reset Password' %}
{% set view_title = 'account.reset_password_title' %}
{% set view_icon = 'user-lock' %}
{% set view_description = 'Request a password reset, once you got the e-mail address, you can choose a new password' %}
{% set view_description = 'account.reset_password_description' %}
{% block view_content %}
{% if view.token %}
{% if not view.success %}
<div class="alert alert-danger" role="alert">{{ view.message }}</div>
<a href='/resetPassword' class='btn btn-primary'>Go back</a>
<a href='/resetPassword' class='btn btn-primary'>{{ L('general.go_back') }}</a>
{% else %}
<h4 class="pb-4">Choose a new password</h4>
<h4 class="pb-4">{{ L('account.reset_password_form_title') }}</h4>
<form>
<input name='token' id='token' type='hidden' value='{{ view.token }}'/>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" autocomplete='new-password' name='password' id='password' class="form-control" placeholder="Password">
<input type="password" autocomplete='new-password' name='password' id='password' class="form-control"
placeholder="{{ L("account.password") }}">
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" autocomplete='new-password' name='confirmPassword' id='confirmPassword' class="form-control" placeholder="Confirm Password">
<input type="password" autocomplete='new-password' name='confirmPassword' id='confirmPassword' class="form-control"
placeholder="{{ L('account.password_confirm') }}">
</div>
<div class="input-group mt-3">
<button type="button" class="btn btn-primary" id='btnResetPassword'>Submit</button>
<button type="button" class="btn btn-primary" id='btnResetPassword'>
{{ L('general.submit') }}
</button>
<a href='/login' style='margin-left: 10px; display: none' id='backToLogin'>
<button class='btn btn-success' type='button'>
Back to Login
{{ L('account.back_to_login') }}
</button>
</a>
</div>
</form>
{% endif %}
{% else %}
<p class='lead'>Enter your E-Mail address, to receive a password reset token.</p>
<p class='lead'>
{{ L("account.reset_password_request_form_title") }}
</p>
<form>
<div class="input-group">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-at"></i></span>
</div>
<input id="email" autocomplete='email' name="email" placeholder="E-Mail address" class="form-control" type="email" maxlength="64" />
<input id="email" autocomplete='email' name="email" placeholder="{{ L('account.email') }}"
class="form-control" type="email" maxlength="64" />
</div>
<div class="input-group mt-2" style='position: absolute;bottom: 15px'>
<button id='btnRequestPasswordReset' class='btn btn-primary'>
Request
{{ L('general.submit') }}
</button>
<a href='/login' style='margin-left: 10px'>
<button class='btn btn-secondary' type='button'>
Back to Login
{{ L('account.back_to_login') }}
</button>
</a>
</div>