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
@@ -19,6 +19,7 @@
use function json_decode;
use function json_encode;
use function trim;
use QUI\Verification\Enum\VerificationStatus;
/**
* Class UserData
@@ -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