alchemy-devise 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +39 -0
  3. data/app/assets/stylesheets/alchemy/custom.scss +2 -0
  4. data/app/assets/stylesheets/alchemy/login.scss +55 -0
  5. data/app/assets/stylesheets/alchemy/users.scss +44 -0
  6. data/app/controllers/alchemy/admin/users_controller.rb +81 -0
  7. data/app/controllers/alchemy/base_controller_extension.rb +12 -0
  8. data/app/controllers/alchemy/passwords_controller.rb +31 -0
  9. data/app/controllers/alchemy/user_sessions_controller.rb +68 -0
  10. data/app/controllers/alchemy/users_controller.rb +46 -0
  11. data/app/mailers/alchemy/notifications.rb +33 -0
  12. data/app/models/alchemy/user.rb +178 -0
  13. data/app/views/alchemy/admin/users/_table.html.erb +69 -0
  14. data/app/views/alchemy/admin/users/_user.html.erb +39 -0
  15. data/app/views/alchemy/admin/users/edit.html.erb +6 -0
  16. data/app/views/alchemy/admin/users/index.html.erb +58 -0
  17. data/app/views/alchemy/admin/users/new.html.erb +6 -0
  18. data/app/views/alchemy/notifications/alchemy_user_created.de.text.erb +15 -0
  19. data/app/views/alchemy/notifications/alchemy_user_created.en.text.erb +15 -0
  20. data/app/views/alchemy/notifications/registered_user_created.de.text.erb +13 -0
  21. data/app/views/alchemy/notifications/registered_user_created.en.text.erb +13 -0
  22. data/app/views/alchemy/notifications/reset_password_instructions.de.text.erb +8 -0
  23. data/app/views/alchemy/notifications/reset_password_instructions.en.text.erb +8 -0
  24. data/app/views/alchemy/passwords/edit.html.erb +35 -0
  25. data/app/views/alchemy/passwords/new.html.erb +30 -0
  26. data/app/views/alchemy/user_sessions/new.html.erb +48 -0
  27. data/app/views/alchemy/users/new.html.erb +14 -0
  28. data/config/authorization_rules.rb +30 -0
  29. data/config/initializers/alchemy.rb +19 -0
  30. data/config/initializers/devise.rb +242 -0
  31. data/config/locales/alchemy.de.yml +44 -0
  32. data/config/locales/alchemy.en.yml +41 -0
  33. data/config/locales/devise.de.yml +58 -0
  34. data/config/locales/devise.en.yml +60 -0
  35. data/config/routes.rb +26 -0
  36. data/config/spring.rb +1 -0
  37. data/db/migrate/20131015124700_create_alchemy_users.rb +33 -0
  38. data/db/migrate/20131225232042_add_alchemy_roles_to_alchemy_users.rb +19 -0
  39. data/lib/alchemy/devise.rb +6 -0
  40. data/lib/alchemy/devise/engine.rb +20 -0
  41. data/lib/alchemy/devise/version.rb +5 -0
  42. metadata +153 -0
@@ -0,0 +1,242 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ # ==> Mailer Configuration
5
+ # Configure the e-mail address which will be shown in Devise::Mailer,
6
+ # note that it will be overwritten if you use your own mailer class with default "from" parameter.
7
+ config.mailer_sender = Alchemy::Config.get(:mailer)['mail_from']
8
+
9
+ # Configure the class responsible to send e-mails.
10
+ config.mailer = "Alchemy::Notifications"
11
+
12
+ # ==> ORM configuration
13
+ # Load and configure the ORM. Supports :active_record (default) and
14
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
15
+ # available as additional gems.
16
+ require 'devise/orm/active_record'
17
+
18
+ config.parent_controller = "Alchemy::BaseController"
19
+
20
+ # ==> Configuration for any authentication mechanism
21
+ # Configure which keys are used when authenticating a user. The default is
22
+ # just :email. You can configure it to use [:username, :subdomain], so for
23
+ # authenticating a user, both parameters are required. Remember that those
24
+ # parameters are used only when authenticating and not when retrieving from
25
+ # session. If you need permissions, you should implement that in a before filter.
26
+ # You can also supply a hash where the value is a boolean determining whether
27
+ # or not authentication should be aborted when the value is not present.
28
+ config.authentication_keys = [:login]
29
+
30
+ # Configure parameters from the request object used for authentication. Each entry
31
+ # given should be a request method and it will automatically be passed to the
32
+ # find_for_authentication method and considered in your model lookup. For instance,
33
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
34
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
35
+ # config.request_keys = []
36
+
37
+ # Configure which authentication keys should be case-insensitive.
38
+ # These keys will be downcased upon creating or modifying a user and when used
39
+ # to authenticate or find a user. Default is :email.
40
+ config.case_insensitive_keys = [:login]
41
+
42
+ # Configure which authentication keys should have whitespace stripped.
43
+ # These keys will have whitespace before and after removed upon creating or
44
+ # modifying a user and when used to authenticate or find a user. Default is :email.
45
+ config.strip_whitespace_keys = [:login]
46
+
47
+ # Tell if authentication through request.params is enabled. True by default.
48
+ # It can be set to an array that will enable params authentication only for the
49
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
50
+ # enable it only for database (email + password) authentication.
51
+ # config.params_authenticatable = true
52
+
53
+ # Tell if authentication through HTTP Basic Auth is enabled. False by default.
54
+ # It can be set to an array that will enable http authentication only for the
55
+ # given strategies, for example, `config.http_authenticatable = [:token]` will
56
+ # enable it only for token authentication.
57
+ # config.http_authenticatable = false
58
+
59
+ # If http headers should be returned for AJAX requests. True by default.
60
+ # config.http_authenticatable_on_xhr = true
61
+
62
+ # The realm used in Http Basic Authentication. "Application" by default.
63
+ # config.http_authentication_realm = "Application"
64
+
65
+ # It will change confirmation, password recovery and other workflows
66
+ # to behave the same regardless if the e-mail provided was right or wrong.
67
+ # Does not affect registerable.
68
+ # config.paranoid = true
69
+
70
+ # By default Devise will store the user in session. You can skip storage for
71
+ # :http_auth and :token_auth by adding those symbols to the array below.
72
+ # Notice that if you are skipping storage for all authentication paths, you
73
+ # may want to disable generating routes to Devise's sessions controller by
74
+ # passing :skip => :sessions to `devise_for` in your config/routes.rb
75
+ config.skip_session_storage = [:http_auth]
76
+
77
+ # ==> Configuration for :database_authenticatable
78
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
79
+ # using other encryptors, it sets how many times you want the password re-encrypted.
80
+ #
81
+ # Limiting the stretches to just one in testing will increase the performance of
82
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
83
+ # a value less than 10 in other environments.
84
+ config.stretches = Rails.env.test? ? 1 : 10
85
+
86
+ # Setup a pepper to generate the encrypted password.
87
+ config.pepper = Rails.configuration.secret_token
88
+
89
+ # ==> Configuration for :confirmable
90
+ # A period that the user is allowed to access the website even without
91
+ # confirming his account. For instance, if set to 2.days, the user will be
92
+ # able to access the website for two days without confirming his account,
93
+ # access will be blocked just in the third day. Default is 0.days, meaning
94
+ # the user cannot access the website without confirming his account.
95
+ # config.allow_unconfirmed_access_for = 2.days
96
+
97
+ # A period that the user is allowed to confirm their account before their
98
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
99
+ # their account within 3 days after the mail was sent, but on the fourth day
100
+ # their account can't be confirmed with the token any more.
101
+ # Default is nil, meaning there is no restriction on how long a user can take
102
+ # before confirming their account.
103
+ # config.confirm_within = 3.days
104
+
105
+ # If true, requires any email changes to be confirmed (exactly the same way as
106
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
107
+ # db field (see migrations). Until confirmed new email is stored in
108
+ # unconfirmed email column, and copied to email column on successful confirmation.
109
+ # config.reconfirmable = false
110
+
111
+ # Defines which key will be used when confirming an account
112
+ # config.confirmation_keys = [ :email ]
113
+
114
+ # ==> Configuration for :rememberable
115
+ # The time the user will be remembered without asking for credentials again.
116
+ # config.remember_for = 2.weeks
117
+
118
+ # If true, extends the user's remember period when remembered via cookie.
119
+ # config.extend_remember_period = false
120
+
121
+ # Options to be passed to the created cookie. For instance, you can set
122
+ # :secure => true in order to force SSL only cookies.
123
+ # config.rememberable_options = {}
124
+
125
+ # ==> Configuration for :validatable
126
+ # Range for password length. Default is 8..128.
127
+ config.password_length = 6..128
128
+
129
+ # Email regex used to validate email formats. It simply asserts that
130
+ # an one (and only one) @ exists in the given string. This is mainly
131
+ # to give user feedback and not to assert the e-mail validity.
132
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
133
+
134
+ # ==> Configuration for :timeoutable
135
+ # The time you want to timeout the user session without activity. After this
136
+ # time the user will be asked for credentials again. Default is 30 minutes.
137
+ config.timeout_in = Rails.env.development? ? nil : Alchemy::Config.get(:auto_logout_time).minutes
138
+
139
+ # If true, expires auth token on session timeout.
140
+ # config.expire_auth_token_on_timeout = false
141
+
142
+ # ==> Configuration for :lockable
143
+ # Defines which strategy will be used to lock an account.
144
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
145
+ # :none = No lock strategy. You should handle locking by yourself.
146
+ # config.lock_strategy = :failed_attempts
147
+
148
+ # Defines which key will be used when locking and unlocking an account
149
+ # config.unlock_keys = [ :email ]
150
+
151
+ # Defines which strategy will be used to unlock an account.
152
+ # :email = Sends an unlock link to the user email
153
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
154
+ # :both = Enables both strategies
155
+ # :none = No unlock strategy. You should handle unlocking by yourself.
156
+ # config.unlock_strategy = :both
157
+
158
+ # Number of authentication tries before locking an account if lock_strategy
159
+ # is failed attempts.
160
+ # config.maximum_attempts = 20
161
+
162
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
163
+ # config.unlock_in = 1.hour
164
+
165
+ # ==> Configuration for :recoverable
166
+ #
167
+ # Defines which key will be used when recovering the password for an account
168
+ # config.reset_password_keys = [ :email ]
169
+
170
+ # Time interval you can reset your password with a reset password key.
171
+ # Don't put a too small interval or your users won't have the time to
172
+ # change their passwords.
173
+ config.reset_password_within = 6.hours
174
+
175
+ # ==> Configuration for :encryptable
176
+ # Allow you to use another encryption algorithm besides bcrypt (default). You can use
177
+ # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
178
+ # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
179
+ # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
180
+ # REST_AUTH_SITE_KEY to pepper)
181
+ # config.encryptor = :authlogic_sha512
182
+
183
+ # ==> Configuration for :token_authenticatable
184
+ # Defines name of the authentication token params key
185
+ # config.token_authentication_key = :auth_token
186
+
187
+ # ==> Scopes configuration
188
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
189
+ # "users/sessions/new". It's turned off by default because it's slower if you
190
+ # are using only default views.
191
+ # config.scoped_views = false
192
+
193
+ # Configure the default scope given to Warden. By default it's the first
194
+ # devise role declared in your routes (usually :user).
195
+ # config.default_scope = :user
196
+
197
+ # Set this configuration to false if you want /users/sign_out to sign out
198
+ # only the current scope. By default, Devise signs out all scopes.
199
+ # config.sign_out_all_scopes = true
200
+
201
+ # ==> Navigation configuration
202
+ # Lists the formats that should be treated as navigational. Formats like
203
+ # :html, should redirect to the sign in page when the user does not have
204
+ # access, but formats like :xml or :json, should return 401.
205
+ #
206
+ # If you have any extra navigational formats, like :iphone or :mobile, you
207
+ # should add them to the navigational formats lists.
208
+ #
209
+ # The "*/*" below is required to match Internet Explorer requests.
210
+ # config.navigational_formats = ["*/*", :html]
211
+
212
+ # The default HTTP method used to sign out a resource. Default is :delete.
213
+ # config.sign_out_via = :delete
214
+
215
+ # ==> OmniAuth
216
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
217
+ # up on your models and hooks.
218
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
219
+
220
+ # ==> Warden configuration
221
+ # If you want to use other strategies, that are not supported by Devise, or
222
+ # change the failure app, you can configure them inside the config.warden block.
223
+ #
224
+ # config.warden do |manager|
225
+ # manager.intercept_401 = false
226
+ # manager.default_strategies(:scope => :user).unshift :some_external_strategy
227
+ # end
228
+
229
+ # ==> Mountable engine configurations
230
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
231
+ # is mountable, there are some extra configurations to be taken into account.
232
+ # The following options are available, assuming the engine is mounted as:
233
+ #
234
+ # mount MyEngine, at: "/my_engine"
235
+ #
236
+ # The router that invoked `devise_for`, in the example above, would be:
237
+ # config.router_name = :my_engine
238
+ #
239
+ # When using omniauth, Devise cannot automatically set Omniauth path,
240
+ # so you need to do it manually. For the users scope, it would be:
241
+ # config.omniauth_path_prefix = "/my_engine/users/auth"
242
+ end
@@ -0,0 +1,44 @@
1
+ de:
2
+ alchemy:
3
+ confirm_to_delete_user: "Wollen Sie diesen Benutzer wirklich löschen?"
4
+ create_user: "Einen Benutzer anlegen"
5
+ delete_user: "Benutzer löschen"
6
+ edit_user: "Benutzer bearbeiten"
7
+ modules:
8
+ user_sessions: "Anmeldung"
9
+ users: "Benutzer"
10
+ "No users found": "Keine Benutzer gefunden."
11
+ "Successfully signup admin user": "Admin Benutzer wurde erfolgreich eingerichtet."
12
+ "Your user credentials": "Ihre Zugangsdaten"
13
+ "Your Alchemy Login": "Ihre Alchemy Zugangsdaten"
14
+
15
+ activerecord:
16
+ models:
17
+ alchemy/user:
18
+ one: Benutzer
19
+ other: Benutzer
20
+
21
+ attributes:
22
+ alchemy/user:
23
+ email: "E-Mail"
24
+ firstname: "Vorname"
25
+ gender: "Anrede"
26
+ language: "Sprache"
27
+ lastname: "Nachname"
28
+ last_sign_in_at: "letzter Login am"
29
+ login: "Benutzername"
30
+ name: "Name"
31
+ password: "Passwort"
32
+ password_confirmation: "Passwort Bestätigung"
33
+ alchemy_roles: "Benutzerrollen"
34
+ tag_list: Tags
35
+ send_credentials: "Sende Benutzerdaten per E-Mail"
36
+
37
+ errors:
38
+ models:
39
+ alchemy/user:
40
+ attributes:
41
+ email:
42
+ invalid: "entspricht nicht dem Format einer E-Mail-Adresse"
43
+ alchemy_roles:
44
+ blank: "mindestens eine Rolle muss angegeben sein"
@@ -0,0 +1,41 @@
1
+ en:
2
+ alchemy:
3
+ confirm_to_delete_user: "Do you really want to delete this user?"
4
+ create_user: "Create a new user"
5
+ delete_user: "Delete this user"
6
+ edit_user: "Edit the user´s properties."
7
+ modules:
8
+ user_sessions: "Login"
9
+ users: "Users"
10
+ "No users found": "No users found."
11
+
12
+ activerecord:
13
+ models:
14
+ alchemy/user:
15
+ one: User
16
+ other: User
17
+
18
+ attributes:
19
+ alchemy/user:
20
+ email: "Email"
21
+ firstname: "Firstname"
22
+ gender: "Gender"
23
+ language: "Language"
24
+ lastname: "Lastname"
25
+ last_sign_in_at: "Last Login At"
26
+ login: "Username"
27
+ name: "Name"
28
+ password: "Password"
29
+ password_confirmation: "Password confirmation"
30
+ alchemy_roles: "User roles"
31
+ send_credentials: "Send email with credentials"
32
+ tag_list: Tags
33
+
34
+ errors:
35
+ models:
36
+ alchemy/user:
37
+ attributes:
38
+ email:
39
+ invalid: "is not a valid email address"
40
+ alchemy_roles:
41
+ blank: "at least one role must be given"
@@ -0,0 +1,58 @@
1
+ de:
2
+ errors:
3
+ messages:
4
+ expired: "ist abgelaufen, bitte neu anfordern"
5
+ not_found: "nicht gefunden"
6
+ already_confirmed: "wurde bereits bestätigt"
7
+ not_locked: "ist nicht gesperrt"
8
+ not_saved:
9
+ one: "Es konnte nicht fortfahren werden:"
10
+ other: "Es konnte nicht fortfahren werden:"
11
+
12
+ devise:
13
+ failure:
14
+ already_authenticated: 'Sie sind bereits angemeldet.'
15
+ unauthenticated: 'Sie müssen sich anmelden oder registrieren, bevor Sie fortfahren können.'
16
+ unconfirmed: 'Sie müssen Ihren Account bestätigen, bevor Sie fortfahren können.'
17
+ locked: 'Ihr Account ist gesperrt.'
18
+ invalid: 'Ungültige Anmeldedaten.'
19
+ invalid_token: 'Der Anmelde-Token ist ungültig.'
20
+ timeout: 'Ihre Sitzung ist abgelaufen, bitte melden Sie sich erneut an.'
21
+ inactive: 'Ihr Account ist nicht aktiv.'
22
+ user:
23
+ not_found_in_database: 'Ungültige Anmeldedaten.'
24
+ sessions:
25
+ signed_in: 'Erfolgreich angemeldet.'
26
+ signed_out: 'Erfolgreich abgemeldet.'
27
+ passwords:
28
+ send_instructions: 'Sie erhalten in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie ihr Passwort zurücksetzen können.'
29
+ updated: 'Ihr Passwort wurde geändert. Sie sind jetzt angemeldet.'
30
+ updated_not_active: 'Ihr Passwort wurde geändert.'
31
+ send_paranoid_instructions: "Falls Ihre E-Mail-Adresse in unserer Datenbank existiert erhalten Sie in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie Ihr Passwort zurücksetzen können."
32
+ no_token: "Es wurde nicht alle benötigten Parameter übergeben. Bitte überprüfen Sie, ob die komplette URL aus der E-Mail benutzt wurde."
33
+ confirmations:
34
+ send_instructions: 'Sie erhalten in wenigen Minuten eine E-Mail, mit der Sie Ihre Registrierung bestätigen können.'
35
+ send_paranoid_instructions: 'Falls Ihre E-Mail-Adresse in unserer Datenbank existiert erhalten Sie in wenigen Minuten eine E-Mail mit der die Sie Ihre Registrierung bestätigen können.'
36
+ confirmed: 'Vielen Dank für Ihre Registrierung. Sie sind jetzt angemeldet.'
37
+ registrations:
38
+ signed_up: 'Sie haben sich erfolgreich registriert.'
39
+ signed_up_but_unconfirmed: 'Sie haben sich erfolgreich registriert. Wir konnten Sie noch nicht anmelden, da Ihr Account noch nicht bestätigt ist. Sie erhalten in Kürze eine E-Mail mit der Anleitung, wie Sie Ihren Account freischalten können.'
40
+ signed_up_but_inactive: 'Sie haben sich erfolgreich registriert. Wir konnten Sie noch nicht anmelden, da Ihr Account inaktiv ist.'
41
+ signed_up_but_locked: 'Sie haben sich erfolgreich registriert. Wir konnten Sie noch nicht anmelden, da Ihr Account gesperrt ist.'
42
+ updated: 'Ihre Daten wurden aktualisiert.'
43
+ update_needs_confirmation: "Ihre Daten wurden aktualisiert, aber Sie müssen Ihre neue E-Mail-Adresse bestätigen. Sie erhalten in wenigen Minuten eine E-Mail, mit der Sie die Änderung Ihrer E-Mail-Adresse abschließen können."
44
+ destroyed: 'Ihr Account wurde gelöscht.'
45
+ unlocks:
46
+ send_instructions: 'Sie erhalten in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie Ihren Account entsperren können.'
47
+ unlocked: 'Ihr Account wurde entsperrt. Sie sind jetzt angemeldet.'
48
+ send_paranoid_instructions: "Falls Ihre E-Mail-Adresse in unserer Datenbank existiert erhalten Sie in wenigen Minuten eine E-Mail mit der Anleitung, wie Sie Ihren Account entsperren können."
49
+ omniauth_callbacks:
50
+ success: 'Die haben sich erfolgreich mit Ihrem %{kind}-Account angemeldet.'
51
+ failure: 'Sie konnten nicht mit Ihrem %{kind}-Account angemeldet werden, weil "%{reason}".'
52
+ mailer:
53
+ confirmation_instructions:
54
+ subject: 'Anleitung zur Bestätigung Ihres Accounts'
55
+ reset_password_instructions:
56
+ subject: 'Anleitung um Ihr Passwort zurückzusetzen'
57
+ unlock_instructions:
58
+ subject: 'Anleitung um Ihren Account freizuschalten'
@@ -0,0 +1,60 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ errors:
5
+ messages:
6
+ expired: "has expired, please request a new one"
7
+ not_found: "not found"
8
+ already_confirmed: "was already confirmed, please try signing in"
9
+ not_locked: "was not locked"
10
+ not_saved:
11
+ one: "1 error prohibited this %{resource} from being saved:"
12
+ other: "%{count} errors prohibited this %{resource} from being saved:"
13
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
14
+
15
+ devise:
16
+ failure:
17
+ already_authenticated: 'You are already signed in.'
18
+ unauthenticated: 'You need to sign in or sign up before continuing.'
19
+ unconfirmed: 'You have to confirm your account before continuing.'
20
+ locked: 'Your account is locked.'
21
+ not_found_in_database: 'Invalid email or password.'
22
+ invalid: 'Invalid email or password.'
23
+ invalid_token: 'Invalid authentication token.'
24
+ timeout: 'Your session expired, please sign in again to continue.'
25
+ inactive: 'Your account was not activated yet.'
26
+ sessions:
27
+ signed_in: 'Signed in successfully.'
28
+ signed_out: 'Signed out successfully.'
29
+ passwords:
30
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
31
+ updated: 'Your password was changed successfully. You are now signed in.'
32
+ updated_not_active: 'Your password was changed successfully.'
33
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
34
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
35
+ confirmations:
36
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
37
+ send_paranoid_instructions: 'If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
38
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
39
+ registrations:
40
+ signed_up: 'Welcome! You have signed up successfully.'
41
+ signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
42
+ signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
43
+ signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
44
+ updated: 'You updated your account successfully.'
45
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
46
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
47
+ unlocks:
48
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
49
+ unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
50
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
51
+ omniauth_callbacks:
52
+ success: 'Successfully authenticated from %{kind} account.'
53
+ failure: 'Could not authenticate you from %{kind} because "%{reason}".'
54
+ mailer:
55
+ confirmation_instructions:
56
+ subject: 'Confirmation instructions'
57
+ reset_password_instructions:
58
+ subject: 'Reset password instructions'
59
+ unlock_instructions:
60
+ subject: 'Unlock Instructions'