second commit
This commit is contained in:
+9
-7
@@ -118,7 +118,7 @@ final class App
|
||||
}
|
||||
|
||||
if ($password !== $passwordConfirm) {
|
||||
flash('error', 'Die Passwoerter stimmen nicht ueberein.');
|
||||
flash('error', 'Die Passwörter stimmen nicht überein.');
|
||||
redirect('/setup');
|
||||
}
|
||||
|
||||
@@ -153,12 +153,12 @@ final class App
|
||||
|
||||
if (!$this->auth->attempt($username, $password)) {
|
||||
$this->throttle->hit($throttleKey);
|
||||
flash('error', 'Login fehlgeschlagen. Bitte pruefe Benutzername und Passwort.');
|
||||
flash('error', 'Login fehlgeschlagen. Bitte prüfe Benutzername und Passwort.');
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
$this->throttle->clear($throttleKey);
|
||||
flash('success', 'Willkommen zurueck.');
|
||||
flash('success', 'Willkommen zurück.');
|
||||
redirect('/');
|
||||
}
|
||||
|
||||
@@ -219,6 +219,8 @@ final class App
|
||||
'entry' => $entry,
|
||||
'evaluation' => $evaluation,
|
||||
'settings' => $settings,
|
||||
'trackMood' => $evaluation['sentiment'],
|
||||
'topbarDate' => $entry['date'],
|
||||
'trackPayload' => encode_payload([
|
||||
'settings' => $settings,
|
||||
'entry' => $entry,
|
||||
@@ -246,7 +248,7 @@ final class App
|
||||
]);
|
||||
|
||||
if (!$this->isValidDate($entry['date'])) {
|
||||
flash('error', 'Bitte waehle ein gueltiges Datum.');
|
||||
flash('error', 'Bitte wähle ein gültiges Datum.');
|
||||
redirect('/track');
|
||||
}
|
||||
|
||||
@@ -344,7 +346,7 @@ final class App
|
||||
}
|
||||
|
||||
if ($new !== $confirm) {
|
||||
flash('error', 'Die neuen Passwoerter stimmen nicht ueberein.');
|
||||
flash('error', 'Die neuen Passwörter stimmen nicht überein.');
|
||||
redirect('/options');
|
||||
}
|
||||
|
||||
@@ -359,7 +361,7 @@ final class App
|
||||
$isAdmin = isset($_POST['is_admin']) && $_POST['is_admin'] === '1';
|
||||
|
||||
if (!$this->isValidUsername($username)) {
|
||||
flash('error', 'Bitte nutze fuer neue Accounts einen sauberen Benutzernamen.');
|
||||
flash('error', 'Bitte nutze für neue Accounts einen sauberen Benutzernamen.');
|
||||
redirect('/options');
|
||||
}
|
||||
|
||||
@@ -538,7 +540,7 @@ final class App
|
||||
{
|
||||
if (!verify_csrf($_POST['_token'] ?? null)) {
|
||||
http_response_code(419);
|
||||
exit('Ungueltiges Formular-Token.');
|
||||
exit('Ungültiges Formular-Token.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user