Fix misleading error code when receiving invalid WebAuthn credentials (#23568)
This commit is contained in:
parent
cc65f32714
commit
8c4ea7d715
2 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue