diff --git a/src/Authenticator/GpgAuthenticator.php b/src/Authenticator/GpgAuthenticator.php index 8acbde885f..bdb816562f 100644 --- a/src/Authenticator/GpgAuthenticator.php +++ b/src/Authenticator/GpgAuthenticator.php @@ -461,7 +461,7 @@ private function _checkNonce(mixed $nonce): bool if ($version != 'gpgauthv1.3.0') { return $this->_error($errorMsg . __('wrong version number.')); } - if ($version != Validation::uuid($uuid)) { + if (!Validation::uuid($uuid)) { return $this->_error($errorMsg . __('it is not a UUID.')); } if ($length != 36) {