2026-04-12 08:10:36 +02:00
|
|
|
{% extends 'Game/index.html.twig' %}
|
|
|
|
|
|
|
|
|
|
{% block title %} - Reset Password{% endblock %}
|
|
|
|
|
|
2026-04-14 18:54:44 +02:00
|
|
|
{% block metas %}
|
|
|
|
|
<meta name="robots" content="noindex,nofollow"/>
|
|
|
|
|
<meta property="og:url" content="{{ app.request.uri }}"/>
|
|
|
|
|
<meta property="og:type" content="website"/>
|
|
|
|
|
<meta property="og:site_name" content="MineSeeker"/>
|
|
|
|
|
<meta property="og:title" content="Set New Password · MineSeeker"/>
|
|
|
|
|
<meta property="og:description" content="Set a new password for your MineSeeker account."/>
|
|
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
|
|
|
<meta name="twitter:title" content="Set New Password · MineSeeker"/>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2026-04-12 08:10:36 +02:00
|
|
|
{% block body %}
|
|
|
|
|
<div class="auth-page">
|
|
|
|
|
<div class="auth-card">
|
|
|
|
|
<h2 class="auth-title">Reset Password</h2>
|
|
|
|
|
<p class="auth-sub">Choose a new password for your account</p>
|
|
|
|
|
|
2026-04-12 08:49:47 +02:00
|
|
|
{{ form_start(form, {attr: {class: 'auth-form'}}) }}
|
|
|
|
|
|
|
|
|
|
<div class="auth-field">
|
|
|
|
|
<label for="{{ form.plainPassword.first.vars.id }}" class="auth-label">New Password</label>
|
|
|
|
|
<div class="auth-input-wrap">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-lock auth-input-icon"></i>
|
2026-04-12 08:49:47 +02:00
|
|
|
{{ form_widget(form.plainPassword.first, {
|
|
|
|
|
attr: {
|
|
|
|
|
class: 'auth-input' ~ (not form.plainPassword.vars.valid ? ' auth-input--error' : ''),
|
|
|
|
|
autocomplete: 'new-password',
|
|
|
|
|
autofocus: true,
|
|
|
|
|
minlength: '6',
|
|
|
|
|
}
|
|
|
|
|
}) }}
|
2026-04-12 08:10:36 +02:00
|
|
|
</div>
|
2026-04-12 08:49:47 +02:00
|
|
|
{% if not form.plainPassword.vars.valid %}
|
|
|
|
|
{% for error in form.plainPassword.vars.errors %}
|
2026-04-13 20:38:22 +02:00
|
|
|
<p class="auth-field-error"><i class="fas fa-circle-exclamation"></i> {{ error.message }}</p>
|
2026-04-12 08:49:47 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
2026-04-12 08:10:36 +02:00
|
|
|
|
2026-04-12 08:49:47 +02:00
|
|
|
<div class="auth-field">
|
|
|
|
|
<label for="{{ form.plainPassword.second.vars.id }}" class="auth-label">Confirm New Password</label>
|
|
|
|
|
<div class="auth-input-wrap">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-lock auth-input-icon"></i>
|
2026-04-12 08:49:47 +02:00
|
|
|
{{ form_widget(form.plainPassword.second, {
|
|
|
|
|
attr: {
|
|
|
|
|
class: 'auth-input' ~ (not form.plainPassword.vars.valid ? ' auth-input--error' : ''),
|
|
|
|
|
autocomplete: 'new-password',
|
|
|
|
|
}
|
|
|
|
|
}) }}
|
2026-04-12 08:10:36 +02:00
|
|
|
</div>
|
2026-04-12 08:49:47 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="auth-submit">
|
2026-04-13 20:38:22 +02:00
|
|
|
<i class="fas fa-key"></i> Set New Password
|
2026-04-12 08:49:47 +02:00
|
|
|
</button>
|
2026-04-12 08:10:36 +02:00
|
|
|
|
2026-04-12 08:49:47 +02:00
|
|
|
{{ form_end(form) }}
|
2026-04-12 08:10:36 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock %}
|
2026-04-12 08:49:47 +02:00
|
|
|
|
|
|
|
|
{% block javascripts %}
|
|
|
|
|
{{ parent() }}
|
|
|
|
|
<script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_site_key }}" async defer></script>
|
|
|
|
|
<script>
|
|
|
|
|
(function () {
|
|
|
|
|
document.querySelector('.auth-form').addEventListener('submit', function (e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
const form = this;
|
|
|
|
|
grecaptcha.ready(function () {
|
|
|
|
|
grecaptcha.execute('{{ recaptcha_site_key }}', {action: 'reset_password'}).then(function (token) {
|
|
|
|
|
document.getElementById('{{ form.recaptcha.vars.id }}').value = token;
|
|
|
|
|
form.submit();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}());
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|