Fix misleading error code when receiving invalid WebAuthn credentials (#23568)
This commit is contained in:
1 parent
cf50667e26
commit
a232a1feb8
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -52,7 +52,7 @@ module Settings
|
||||
end
|
||||
else
|
||||
flash[:error] = I18n.t('webauthn_credentials.create.error')
|
||||
status = :internal_server_error
|
||||
status = :unprocessable_entity
|
||||
end
|
||||
else
|
||||
flash[:error] = t('webauthn_credentials.create.error')
|
||||
|
||||
Reference in new issue
Block a user