diff --git a/app/Models/TwoFAccount.php b/app/Models/TwoFAccount.php index 054c3326..bcd2b05e 100644 --- a/app/Models/TwoFAccount.php +++ b/app/Models/TwoFAccount.php @@ -347,7 +347,6 @@ public function getOTP() : TotpDto|HotpDto $OtpDto->counter = $this->counter = $counter + 1; } - else throw new UnsupportedOtpTypeException(); Log::info(sprintf('New OTP generated for TwoFAccount #%s', $this->id)); @@ -507,7 +506,6 @@ private function initGenerator() default: throw new UnsupportedOtpTypeException(); - break; } if ($this->service) $this->generator->setIssuer($this->service);