Skip to content

Compare: How To: Require admin to activate account before sign_in

Showing with 4 additions and 1 deletion.
  1. +4 −1 How-To:-Require-admin-to-activate-account-before-sign_in.md
View
5 How-To:-Require-admin-to-activate-account-before-sign_in.md
@@ -41,10 +41,13 @@ Then, override the following methods in your model (User.rb):
end
```
-You will need to create an entry for :not_approved in the i18n file, located at `config/locales/devise.##.yml`:
+You will need to create an entry for `:not_approved` and `:signed_up_but_not_approved` in the i18n file, located at `config/locales/devise.##.yml`:
```ruby
devise:
+ registrations:
+ user:
+ signed_up_but_not_approved: 'You have signed up successfully but your account has not been approved by your administrator yet'
failure:
not_approved: 'Your account has not been approved by your administrator yet.'
```
Something went wrong with that request. Please try again.