Upload via GUI (267 Dateien)
This commit is contained in:
@@ -12,14 +12,14 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
if (!rate_limit_check('login_attempt', client_ip(), 10, 15)) {
|
||||
$errors[] = 'Zu viele Anmeldeversuche. Bitte versuchen Sie es in einigen Minuten erneut.';
|
||||
} elseif ($email && !rate_limit_check('login_email', $email, 5, 15)) {
|
||||
} elseif ($email && !rate_limit_check('login_email', strtolower($email), 5, 15)) {
|
||||
$errors[] = 'Zu viele Anmeldeversuche für dieses Konto. Bitte warten Sie einige Minuten.';
|
||||
} else {
|
||||
$stmt = get_db()->prepare('SELECT * FROM users WHERE email = ?');
|
||||
$stmt = get_db()->prepare('SELECT * FROM users WHERE LOWER(email) = LOWER(?)');
|
||||
$stmt->execute([$email]);
|
||||
$user = $stmt->fetch();
|
||||
if ($user && password_verify($pass, $user['password_hash'])) {
|
||||
rate_limit_reset('login_email', $email);
|
||||
rate_limit_reset('login_email', strtolower($email));
|
||||
customer_login($user);
|
||||
redirect('/home.php');
|
||||
}
|
||||
@@ -53,8 +53,7 @@ $imprintHtml = get_setting('footer_imprint_html', '');
|
||||
<link rel="manifest" href="/manifest.php">
|
||||
<meta name="theme-color" content="#0f6f6a">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="apple-touch-icon" href="/assets/icons/icon-192.png">
|
||||
<?php if ($logo): ?><link rel="icon" href="<?= e($logo) ?>"><?php endif; ?>
|
||||
<?= site_icon_links() ?>
|
||||
<script>if('serviceWorker'in navigator){navigator.serviceWorker.register('/sw.js').catch(function(){});}</script>
|
||||
<?php if (!$banner && !$customThemeStylesheet): ?>
|
||||
<style>
|
||||
@@ -84,7 +83,7 @@ $imprintHtml = get_setting('footer_imprint_html', '');
|
||||
<span class="text-brand">Desk<span>Hub</span></span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<?php if ($logo && $displayName): ?>
|
||||
<?php if ($logo && $displayName && get_setting('logo_hide_name', '0') !== '1'): ?>
|
||||
<span style="font-size:1.15rem; font-weight:700; color:var(--ink); letter-spacing:-.01em"><?= e($displayName) ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@@ -115,9 +114,9 @@ $imprintHtml = get_setting('footer_imprint_html', '');
|
||||
<form method="post">
|
||||
<?= csrf_field() ?>
|
||||
<label for="email">E-Mail-Adresse</label>
|
||||
<input type="email" id="email" name="email" required autofocus autocomplete="email">
|
||||
<input type="email" id="email" name="email" required autofocus autocomplete="email" autocapitalize="none" autocorrect="off" spellcheck="false">
|
||||
<label for="password">Passwort</label>
|
||||
<input type="password" id="password" name="password" required autocomplete="current-password">
|
||||
<input type="password" id="password" name="password" required autocomplete="current-password" autocapitalize="none" autocorrect="off" spellcheck="false">
|
||||
<div style="text-align:right; margin-top:6px">
|
||||
<a href="/forgot_password.php" class="login-forgot">Passwort vergessen?</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user