1
0
mirror of https://github.com/bitwarden/server.git synced 2025-03-11 13:19:40 +01:00

fix(newDeviceVerification): updated error response from invalid OTP

This commit is contained in:
Ike Kottlowski 2025-03-10 21:23:08 -04:00
parent 29dc69a77b
commit 2acb66ac8e
No known key found for this signature in database
GPG Key ID: C86308E3DCA6D76F

View File

@ -256,7 +256,7 @@ public class DeviceValidator(
break;
case DeviceValidationResultType.InvalidNewDeviceOtp:
result.ErrorDescription = "Invalid New Device OTP";
customResponse.Add("ErrorModel", new ErrorResponseModel("invalid new device otp"));
customResponse.Add("ErrorModel", new ErrorResponseModel("invalid new device otp. try again."));
break;
case DeviceValidationResultType.NewDeviceVerificationRequired:
result.ErrorDescription = "New device verification required";