Skip to content
Code-Schnipsel Gruppen Projekte

fix: correctly check if email change verification is still in progress

Zusammengeführt Patrick Müller requested to merge next-2.x into main
1 Datei
+ 2
1
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
@@ -10,6 +10,7 @@
use QUI;
use QUI\FrontendUsers\Handler as FrontendUsersHandler;
use QUI\Utils\Security\Orthos;
use QUI\Verification\Enum\VerificationStatus;
use QUI\Verification\Interface\VerificationRepositoryInterface;
use QUI\Verification\VerificationRepository;
@@ -75,7 +76,7 @@ public function getBody(): string
'confirmemail-' . $User->getUUID()
);
if (is_null($verification)) {
if (is_null($verification) || $verification->status !== VerificationStatus::PENDING) {
$emailChangeRequested = false;
}
} catch (Exception) {
Lade