diff --git a/Web/app.py b/Web/app.py index f737955..3a317c3 100755 --- a/Web/app.py +++ b/Web/app.py @@ -18,6 +18,7 @@ Features: """ from flask import Flask, render_template, request, redirect, url_for, session, flash, send_from_directory, get_flashed_messages, jsonify, Response, make_response, send_file, abort +from flask_wtf.csrf import CSRFProtect from werkzeug.utils import secure_filename from werkzeug.middleware.proxy_fix import ProxyFix from werkzeug.exceptions import HTTPException @@ -115,6 +116,7 @@ app.config['PREFERRED_URL_SCHEME'] = 'https' if app.config['SESSION_COOKIE_SECUR # app.config['QR_CODE_FOLDER'] = cfg.QR_CODE_FOLDER # QR Code storage deactivated app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1) app.register_blueprint(terminplaner_bp, url_prefix='/terminplaner') +csrf = CSRFProtect(app) """--------------------------------------------------------------Path Init-------------------------------------------------------""" diff --git a/Web/templates/register.html b/Web/templates/register.html index 15e24cc..d240b18 100755 --- a/Web/templates/register.html +++ b/Web/templates/register.html @@ -1,11 +1,3 @@ - {% extends "base.html" %} {% block title %}Register{% endblock %} @@ -33,6 +25,10 @@
+ + + +
@@ -44,7 +40,7 @@ 👤
- +
👤 @@ -64,9 +60,22 @@
  • Mindestens ein Sonderzeichen
  • -
    - 🔒 - + +
    +
    + 🔒 + + +
    + +
    +
    +
    @@ -258,31 +267,6 @@ input::placeholder { background-color: #27ae60; } -.navigation-buttons { - text-align: center; - margin: 1.5rem 0; -} - -.back-button { - display: inline-flex; - align-items: center; - color: var(--primary-color); - text-decoration: none; - font-weight: 500; - transition: var(--transition); - padding: 0.5rem 1rem; - border-radius: var(--border-radius); -} - -.back-button:hover { - background-color: rgba(52, 152, 219, 0.1); -} - -.back-icon { - margin-right: 0.5rem; - font-size: 1.2rem; -} - .flash-container { margin-bottom: 1.5rem; } @@ -422,49 +406,147 @@ input::placeholder { margin: 4px 0; color: #1f2937; } + +/* Neue Styles für die Passwort-Erweiterungen */ +.pw-actions { + display: flex; + gap: 8px; + margin-top: 8px; +} + +.btn-secondary { + padding: 8px 12px; + border: 1px solid #d1d5db; + background-color: #f3f4f6; + border-radius: 4px; + cursor: pointer; + font-size: 0.9em; + transition: background-color 0.2s; +} + +.btn-secondary:hover { + background-color: #e5e7eb; +} + +.input-wrapper { + display: flex; + align-items: center; + gap: 8px; + width: 100%; +} + +.input-wrapper .input-container { + flex-grow: 1; + margin: 0; +}