diff --git a/src/pages/login.php b/src/pages/login.php
index 91803b1e..7d996761 100644
--- a/src/pages/login.php
+++ b/src/pages/login.php
@@ -53,45 +53,45 @@ if (isset($_POST['reset'], $_POST['email'])) {
$user = false !== $userQuery ? new User($userQuery->fetch()) : new User();
$token = sha1(time() . rand(0, 999999));
- $validUntil = time() + 3600;
+ $validUntil = time() + 3600;
- $database
- ->query(
- 'UPDATE `users`
- SET `password_reset_token` = :user_password_reset_token,
- `password_reset_valid_until` = :user_reset_valid_until
- WHERE `id` = ' . $user->getId() . ';',
- array(
- 'user_password_reset_token' => $token,
- 'user_reset_valid_until' => date('Y-m-d H:i:s', $validUntil),
- )
- );
+ $database
+ ->query(
+ 'UPDATE `users`
+ SET `password_reset_token` = :user_password_reset_token,
+ `password_reset_valid_until` = :user_reset_valid_until
+ WHERE `id` = ' . $user->getId() . ';',
+ array(
+ 'user_password_reset_token' => $token,
+ 'user_reset_valid_until' => date('Y-m-d H:i:s', $validUntil),
+ )
+ );
- $emailReset = new Email($_POST['email'], __('Password reset link', null, $user), 'default', 'password-reset');
- $emailReset->setPlaceholder('TEXT_HELLO', __('Hello,', null, $user));
- $emailReset->setPlaceholder(
- 'TEXT_PASSWORD_RESET',
- sprintf(
- /** TRANSLATORS: %s: The wishthis domain */
- __('somebody has requested a password reset for this email address from %s. If this was you, click the button below to invalidate your current password and set a new one.', null, $user),
- '