Fix 2fa error msg

This commit is contained in:
Viacheslav Klimov 2022-06-17 12:10:02 +03:00
parent 1d8a2a0885
commit f9bfe6eb6f

View File

@ -63,7 +63,7 @@ public class SmsTwoFaProvider extends OtpBasedTwoFaProvider<SmsTwoFaProviderConf
@Override @Override
public void check(TenantId tenantId) throws ThingsboardException { public void check(TenantId tenantId) throws ThingsboardException {
if (!smsService.isConfigured(tenantId)) { if (!smsService.isConfigured(tenantId)) {
throw new ThingsboardException("SMS service in not configured", ThingsboardErrorCode.BAD_REQUEST_PARAMS); throw new ThingsboardException("SMS service is not configured", ThingsboardErrorCode.BAD_REQUEST_PARAMS);
} }
} }