myCRM/templates/security/password_reset_invalid.html.twig
olli 3e30d958b3 feat: Implement password reset functionality
- Added PasswordResetController to handle password reset requests and confirmations.
- Created views for password reset request, confirmation, and invalid link scenarios.
- Implemented email sending for password reset requests with security measures.
- Added form validation for password reset confirmation, including password strength requirements.
- Enhanced user experience with success and error messages during the password reset process.
2025-11-11 14:31:40 +01:00

175 lines
4.8 KiB
Twig

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ungültiger Link - myCRM</title>
<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: #f8fafc;
min-height: 100vh;
}
.login-container {
background: #f8fafc;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
min-width: 100vw;
overflow: hidden;
}
.login-wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.login-card-wrapper {
border-radius: 56px;
padding: 0.3rem;
background: linear-gradient(180deg, #dc2626 10%, rgba(220, 38, 38, 0) 30%);
}
.login-card {
width: 100%;
background: #ffffff;
padding: 5rem 2rem;
border-radius: 53px;
text-align: center;
}
@media (min-width: 576px) {
.login-card {
padding: 5rem 5rem;
}
}
@media (min-width: 768px) {
.login-card {
width: 35rem;
}
}
.error-icon {
font-size: 4rem;
margin-bottom: 1.5rem;
}
.error-title {
color: #dc2626;
font-size: 1.875rem;
font-weight: 600;
margin: 0 0 1rem;
}
.error-text {
color: #64748b;
font-size: 1rem;
line-height: 1.6;
margin: 0 0 2rem;
}
.error-reasons {
background: #f9fafb;
padding: 1.5rem;
border-radius: 0.5rem;
margin: 2rem 0;
text-align: left;
}
.error-reasons h2 {
margin: 0 0 1rem;
color: #0f172a;
font-size: 1rem;
font-weight: 600;
}
.error-reasons ul {
margin: 0;
padding-left: 1.5rem;
color: #64748b;
font-size: 0.875rem;
}
.error-reasons li {
margin: 0.5rem 0;
}
.p-button {
display: inline-block;
padding: 0.875rem 2rem;
font-size: 1rem;
font-weight: 500;
color: #ffffff;
background: #3B82F6;
border: 1px solid #3B82F6;
border-radius: 0.375rem;
cursor: pointer;
text-decoration: none;
transition: background 0.2s;
margin: 0.5rem;
}
.p-button:hover {
background: #2563eb;
border-color: #2563eb;
}
.p-button-secondary {
background: #f1f5f9;
color: #334155;
border-color: #e2e8f0;
}
.p-button-secondary:hover {
background: #e2e8f0;
border-color: #cbd5e1;
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-wrapper">
<div class="login-card-wrapper">
<div class="login-card">
<div class="error-icon">❌</div>
<h1 class="error-title">Ungültiger oder abgelaufener Link</h1>
<p class="error-text">
Der Link zum Zurücksetzen des Passworts ist nicht gültig oder bereits abgelaufen.
</p>
<div class="error-reasons">
<h2>Mögliche Gründe:</h2>
<ul>
<li>Der Link ist bereits verwendet worden</li>
<li>Der Link ist älter als 24 Stunden</li>
<li>Der Link wurde nicht korrekt kopiert</li>
</ul>
</div>
<div>
<a href="{{ path('app_password_reset_request') }}" class="p-button">
Neuen Link anfordern
</a>
</div>
<div>
<a href="{{ path('app_login') }}" class="p-button p-button-secondary">
Zurück zum Login
</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>