Skip to content

Commit

Permalink
fix: translation key for unconfirmed signup message (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nishiura authored Dec 12, 2024
1 parent 6113b29 commit bd49310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise/api/responses/token_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def status
def signed_up_body
return default_body unless resource_owner.class.supported_devise_modules.confirmable?

message = resource_owner.confirmed? ? nil : I18n.t('devise.api.registerable.signed_up_but_unconfirmed')
message = resource_owner.confirmed? ? nil : I18n.t('devise.api.error_response.registerable.signed_up_but_unconfirmed')

default_body.merge(confirmable: { confirmed: resource_owner.confirmed?, message: message }.compact)
end
Expand Down

0 comments on commit bd49310

Please sign in to comment.