templates/login/password-lost.html.twig line 1
{# templates/login/index.html.twig #}
{% extends 'base.html.twig' %}
{% block title %} - Passwort vergessen {% endblock %}
{% block body %}
<div class="container sm:px-10">
<div class="block xl:grid grid-cols-2 gap-4">
<!-- BEGIN: Login Info -->
<div class="hidden xl:flex flex-col min-h-screen">
<div class="my-auto">
<div class="-intro-x text-white font-medium text-3xl leading-tight {% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-0">
{{ texte["login-0"]|raw }}
</div>
<div class="-intro-x text-white font-medium text-4xl leading-tight mt-10">
Hier können Sie Ihr
<br>
Passwort zurücksetzen.
</div>
</div>
</div>
<!-- END: Login Info -->
<!-- BEGIN: Login Form -->
<div class="h-screen xl:h-auto flex py-5 xl:py-0 my-10 xl:my-0">
<div class="my-auto mx-auto xl:ml-20 bg-white dark:bg-darkmode-600 xl:bg-transparent px-5 sm:px-8 py-8 xl:p-0 rounded-md shadow-md xl:shadow-none w-full sm:w-3/4 lg:w-2/4 xl:w-auto">
<img id="logo" alt="/" class="w-32" src="{% if app.session.get('logo') %}/customerdata/{{ app.session.get('logo') }}{% else %}/images/logo-msu-farbig.svg{% endif %}">
{% if newpassword is not defined %}
<form action="/passwort-vergessen/" method="post" class="mt-10">
<h2 class="intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left">
Bitte geben Sie Ihre Mailadresse ein.
</h2>
<p class="font-normal mt-5 mb-5">Sie erhalten eine Mail mit einem Link zum Zurücksetzen des Passwortes.</p>
<div class="intro-x mt-8">
<input type="text" class="intro-x login__input form-control py-3 px-4 block" id="email" name="email" placeholder="Email">
</div>
<div class="intro-x mt-5 xl:mt-8 text-center xl:text-left">
<button class="btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top" id="passwortvergessen">Absenden</button>
</div>
</form>
<div class="intro-x mt-2 text-center xl:text-left">
<a href="/"><button class="btn btn-secondary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top">zur Startseite</button></a>
</div>
{% endif %}
{% if info is defined and info is not empty %}
<div class="alert alert-secondary show flex items-center mb-2 mt-2" role="alert">
<i data-lucide="mail" class="w-6 h-6 mr-2"></i> {{ info }}
</div>
{% endif %}
{% if error is defined and error is not empty%}
<div class="alert alert-danger show flex items-center mb-2 mt-2" role="alert">
<i data-lucide="info" class="w-6 h-6 mr-2"></i> {{ error }}
</div>
{% endif %}
{% if newpassword is defined %}
<h2 class="intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left">
Bitte geben Sie Ihr neues Passwort ein.
</h2>
<div class="mb-20">
<div class="text-muted font-weight-bold mt-5 mb-5">Bitte geben Sie Ihr neues Passwort ein.</div>
</div>
<form class="form" method="post" action="/passwort-vergessen/" id="formpasswortvergessen">
<div class="form-group mb-5">
<input type="hidden" name="newhash" value="{{ newpassword }}" />
<input class="intro-x login__input form-control py-3 px-4 block" type="password" id="newpassword" placeholder="Passwort" name="password-first" />
</div>
<div class="form-group mb-5">
<input class="intro-x login__input form-control py-3 px-4 block" type="password" id="newpasswordrepeat" placeholder="Passwort wiederholen" name="password-second" />
</div>
<div class="intro-x mt-2 text-center xl:text-left">
<button class="btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top" id="newpasswordbutton">Speichern</button>
</div>
</form>
<div class="intro-x mt-2 text-center xl:text-left">
<a href="/"><button class="btn btn-secondary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top">zur Startseite</button></a>
</div>
<div class="form-inline mt-5 alert-info full-width" style="display: none;">
<div class="alert alert-danger show flex items-center mb-2" role="alert"> <i data-lucide="alert-triangle" class="w-6 h-6 mr-2"></i>
<span class="passwordalert"></span>
</div>
</div>
<!--end::Login Sign in form-->
{% endif %}
<div class="intro-x mt-10 xl:mt-24 text-slate-600 dark:text-slate-500 text-center xl:text-left">
<a href="{% if barrierefreiheit is defined and barrierefreiheit is not empty %} {{barrierefreiheit}} {% endif %}" class="text-primary dark:text-slate-200 mr-5"> Barrierefreiheit </a>
<a href="{% if datenschutz is defined and datenschutz is not empty %} {{datenschutz}} {% endif %}" class="text-primary dark:text-slate-200 mr-5"> Datenschutz </a>
<a href="{% if impressum is defined and impressum is not empty %} {{impressum}} {% endif %}" class="text-primary dark:text-slate-200"> Impressum </a>
</div>
</div>
</div>
<!-- END: Login Form -->
</div>
</div>
{% endblock %}
{% block scripts %}
<script src="{{ asset('/js/passwort.js')}}"></script>
{% endblock %}