diff --git a/application/features/bootstrap/EmailContext.php b/application/features/bootstrap/EmailContext.php index 2864d6c0..145e6765 100644 --- a/application/features/bootstrap/EmailContext.php +++ b/application/features/bootstrap/EmailContext.php @@ -1168,7 +1168,7 @@ public function thatUserHasAPasswordThatExpiresInDays($n) $currentPassword = $this->tempUser->currentPassword; $currentPassword->password = base64_encode(random_bytes(33)); // Needed to pass validation - $currentPassword->expires_on = MySqlDateTime::relative('+' . $n . ' days'); + $currentPassword->expires_on = MySqlDateTime::relative($n . ' days'); Assert::true( $currentPassword->save(), 'Failed to save updated password expiration date. '