google_authentication 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module GoogleAuthentication
23
23
 
24
24
  # Build the migration files for the given model
25
25
  def copy_devise_migration
26
- migration_template "migration.rb", "db/migrate/devise_create_#{table_name}"
26
+ migration_template "migration.rb", "db/migrate/devise_create_#{table_name}.rb"
27
27
  end
28
28
 
29
29
  # Insert gem activation code into the selected class
@@ -1,4 +1,6 @@
1
+ require 'devise'
1
2
  require 'google_authentication/acts_as_google_user'
3
+ require 'google_authentication/engine'
2
4
 
3
5
  # Main module for the gem
4
6
  module GoogleAuthentication
@@ -43,6 +45,4 @@ module GoogleAuthentication
43
45
  model_name.to_s.pluralize.to_sym
44
46
  end
45
47
 
46
- # require the engine if rails is defined
47
- require 'google_authentication/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
48
48
  end
@@ -39,7 +39,7 @@ module GoogleAuthentication
39
39
  # include devise modules
40
40
  devise *(ActsAsGoogleUser.devise_modules_to_include)
41
41
  # Setup accessible (or protected) attributes for your model
42
- attr_accessible :email, :omniauth_uid
42
+ attr_accessible :email, :omniauth_uid if Rails::VERSION::MAJOR == 3
43
43
  # Setup validation for model
44
44
  validates_presence_of :email, :omniauth_uid
45
45
  validates_uniqueness_of :email, :omniauth_uid
@@ -1,5 +1,3 @@
1
- require 'google_authentication'
2
-
3
1
  require 'rails'
4
2
  require 'action_controller'
5
3
 
@@ -0,0 +1,3 @@
1
+ module GoogleAuthentication
2
+ VERSION = '0.3.0'
3
+ end
@@ -1,35 +1,77 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb
1
+ if Rails::VERSION::MAJOR == 4
3
2
 
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
3
+ Dummy::Application.configure do
4
+ # Settings specified here will take precedence over those in config/application.rb.
9
5
 
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
6
+ # The test environment is used exclusively to run your application's
7
+ # test suite. You never need to work with it otherwise. Remember that
8
+ # your test database is "scratch space" for the test suite and is wiped
9
+ # and recreated between test runs. Don't rely on the data there!
10
+ config.cache_classes = true
12
11
 
13
- # Show full error reports and disable caching
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
12
+ # Do not eager load code on boot. This avoids loading your whole application
13
+ # just for the purpose of running a single test. If you are using a tool that
14
+ # preloads Rails for running tests, you may have to set it to true.
15
+ config.eager_load = false
16
16
 
17
- # Raise exceptions instead of rendering exception templates
18
- config.action_dispatch.show_exceptions = false
17
+ # Configure static asset server for tests with Cache-Control for performance.
18
+ config.serve_static_assets = true
19
+ config.static_cache_control = "public, max-age=3600"
19
20
 
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
21
+ # Show full error reports and disable caching.
22
+ config.consider_all_requests_local = true
23
+ config.action_controller.perform_caching = false
22
24
 
23
- # Tell Action Mailer not to deliver emails to the real world.
24
- # The :test delivery method accumulates sent emails in the
25
- # ActionMailer::Base.deliveries array.
26
- config.action_mailer.delivery_method = :test
25
+ # Raise exceptions instead of rendering exception templates.
26
+ config.action_dispatch.show_exceptions = false
27
27
 
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
28
+ # Disable request forgery protection in test environment.
29
+ config.action_controller.allow_forgery_protection = false
32
30
 
33
- # Print deprecation notices to the stderr
34
- config.active_support.deprecation = :stderr
35
- end
31
+ # Tell Action Mailer not to deliver emails to the real world.
32
+ # The :test delivery method accumulates sent emails in the
33
+ # ActionMailer::Base.deliveries array.
34
+ config.action_mailer.delivery_method = :test
35
+
36
+ # Print deprecation notices to the stderr.
37
+ config.active_support.deprecation = :stderr
38
+ end
39
+
40
+ else
41
+
42
+ Dummy::Application.configure do
43
+ # Settings specified here will take precedence over those in config/application.rb
44
+
45
+ # The test environment is used exclusively to run your application's
46
+ # test suite. You never need to work with it otherwise. Remember that
47
+ # your test database is "scratch space" for the test suite and is wiped
48
+ # and recreated between test runs. Don't rely on the data there!
49
+ config.cache_classes = true
50
+
51
+ # Log error messages when you accidentally call methods on nil.
52
+ config.whiny_nils = true
53
+
54
+ # Show full error reports and disable caching
55
+ config.consider_all_requests_local = true
56
+ config.action_controller.perform_caching = false
57
+
58
+ # Raise exceptions instead of rendering exception templates
59
+ config.action_dispatch.show_exceptions = false
60
+
61
+ # Disable request forgery protection in test environment
62
+ config.action_controller.allow_forgery_protection = false
63
+
64
+ # Tell Action Mailer not to deliver emails to the real world.
65
+ # The :test delivery method accumulates sent emails in the
66
+ # ActionMailer::Base.deliveries array.
67
+ config.action_mailer.delivery_method = :test
68
+
69
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
70
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
71
+ # like if you have constraints or database-specific column types
72
+ # config.active_record.schema_format = :sql
73
+
74
+ # Print deprecation notices to the stderr
75
+ config.active_support.deprecation = :stderr
76
+ end
77
+ end
@@ -1,12 +1,22 @@
1
- # Use this hook to configure devise mailer, warden hooks and so forth. The first
2
- # four configuration values can also be set straight in your models.
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
3
  Devise.setup do |config|
4
+ # The secret key used by Devise. Devise uses this key to generate
5
+ # random tokens. Changing this key will render invalid all existing
6
+ # confirmation, reset password and unlock tokens in the database.
7
+ require 'devise/version'
8
+ unless Devise::VERSION.start_with? '2'
9
+ config.secret_key = '74efd5aeb485343bff2590b7d7f430fe254130ff36aa3a81c272678e28b943deb6260debd7b67dc809280ba570155f854fd553c84c557c773fede7d8469e7893'
10
+ end
11
+
4
12
  # ==> Mailer Configuration
5
- # Configure the e-mail address which will be shown in DeviseMailer.
6
- config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
13
+ # Configure the e-mail address which will be shown in Devise::Mailer,
14
+ # note that it will be overwritten if you use your own mailer class
15
+ # with default "from" parameter.
16
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
7
17
 
8
18
  # Configure the class responsible to send e-mails.
9
- # config.mailer = "Devise::Mailer"
19
+ # config.mailer = 'Devise::Mailer'
10
20
 
11
21
  # ==> ORM configuration
12
22
  # Load and configure the ORM. Supports :active_record (default) and
@@ -35,45 +45,84 @@ Devise.setup do |config|
35
45
  # These keys will be downcased upon creating or modifying a user and when used
36
46
  # to authenticate or find a user. Default is :email.
37
47
  config.case_insensitive_keys = [ :email ]
38
-
48
+
39
49
  # Configure which authentication keys should have whitespace stripped.
40
50
  # These keys will have whitespace before and after removed upon creating or
41
51
  # modifying a user and when used to authenticate or find a user. Default is :email.
42
52
  config.strip_whitespace_keys = [ :email ]
43
53
 
44
54
  # Tell if authentication through request.params is enabled. True by default.
55
+ # It can be set to an array that will enable params authentication only for the
56
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
57
+ # enable it only for database (email + password) authentication.
45
58
  # config.params_authenticatable = true
46
59
 
47
- # Tell if authentication through HTTP Basic Auth is enabled. False by default.
60
+ # Tell if authentication through HTTP Auth is enabled. False by default.
61
+ # It can be set to an array that will enable http authentication only for the
62
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
63
+ # enable it only for database authentication. The supported strategies are:
64
+ # :database = Support basic authentication with authentication key + password
48
65
  # config.http_authenticatable = false
49
66
 
50
67
  # If http headers should be returned for AJAX requests. True by default.
51
68
  # config.http_authenticatable_on_xhr = true
52
69
 
53
- # The realm used in Http Basic Authentication. "Application" by default.
54
- # config.http_authentication_realm = "Application"
70
+ # The realm used in Http Basic Authentication. 'Application' by default.
71
+ # config.http_authentication_realm = 'Application'
55
72
 
56
73
  # It will change confirmation, password recovery and other workflows
57
74
  # to behave the same regardless if the e-mail provided was right or wrong.
58
75
  # Does not affect registerable.
59
76
  # config.paranoid = true
60
77
 
78
+ # By default Devise will store the user in session. You can skip storage for
79
+ # particular strategies by setting this option.
80
+ # Notice that if you are skipping storage for all authentication paths, you
81
+ # may want to disable generating routes to Devise's sessions controller by
82
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
83
+ config.skip_session_storage = [:http_auth]
84
+
85
+ # By default, Devise cleans up the CSRF token on authentication to
86
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
87
+ # requests for sign in and sign up, you need to get a new CSRF token
88
+ # from the server. You can disable this option at your own risk.
89
+ # config.clean_up_csrf_token_on_authentication = true
90
+
61
91
  # ==> Configuration for :database_authenticatable
62
92
  # For bcrypt, this is the cost for hashing the password and defaults to 10. If
63
93
  # using other encryptors, it sets how many times you want the password re-encrypted.
64
- config.stretches = 10
94
+ #
95
+ # Limiting the stretches to just one in testing will increase the performance of
96
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
97
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
98
+ # encryptor), the cost increases exponentially with the number of stretches (e.g.
99
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
100
+ config.stretches = Rails.env.test? ? 1 : 10
65
101
 
66
102
  # Setup a pepper to generate the encrypted password.
67
- # config.pepper = "a65749b2d1c2d05a91a60077f0cd93b2b85029e69631c39d756546ec5e925ec12ca805251d64287b93e7a64c5b5a75a1006293dfaed4bba959ee1ca04f742368"
103
+ # config.pepper = 'c7c02fc566f7527cf35b763a5f563e4767ca9db102388d46e75a158ec8b27ec9ee18173653957a21c21d13b8dc7a20ae75145a8d9b2b43cfe8a3b38bff400350'
68
104
 
69
105
  # ==> Configuration for :confirmable
70
- # The time you want to give your user to confirm his account. During this time
71
- # he will be able to access your application without confirming. Default is 0.days
72
- # When confirm_within is zero, the user won't be able to sign in without confirming.
73
- # You can use this to let your user access some features of your application
74
- # without confirming the account, but blocking it after a certain period
75
- # (ie 2 days).
76
- # config.confirm_within = 2.days
106
+ # A period that the user is allowed to access the website even without
107
+ # confirming their account. For instance, if set to 2.days, the user will be
108
+ # able to access the website for two days without confirming their account,
109
+ # access will be blocked just in the third day. Default is 0.days, meaning
110
+ # the user cannot access the website without confirming their account.
111
+ # config.allow_unconfirmed_access_for = 2.days
112
+
113
+ # A period that the user is allowed to confirm their account before their
114
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
115
+ # their account within 3 days after the mail was sent, but on the fourth day
116
+ # their account can't be confirmed with the token any more.
117
+ # Default is nil, meaning there is no restriction on how long a user can take
118
+ # before confirming their account.
119
+ # config.confirm_within = 3.days
120
+
121
+ # If true, requires any email changes to be confirmed (exactly the same way as
122
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
123
+ # db field (see migrations). Until confirmed, new email is stored in
124
+ # unconfirmed_email column, and copied to email column on successful confirmation.
125
+ config.reconfirmable = true
77
126
 
78
127
  # Defines which key will be used when confirming an account
79
128
  # config.confirmation_keys = [ :email ]
@@ -82,28 +131,30 @@ Devise.setup do |config|
82
131
  # The time the user will be remembered without asking for credentials again.
83
132
  # config.remember_for = 2.weeks
84
133
 
85
- # If true, a valid remember token can be re-used between multiple browsers.
86
- # config.remember_across_browsers = true
87
-
88
134
  # If true, extends the user's remember period when remembered via cookie.
89
135
  # config.extend_remember_period = false
90
136
 
91
137
  # Options to be passed to the created cookie. For instance, you can set
92
- # :secure => true in order to force SSL only cookies.
93
- # config.cookie_options = {}
138
+ # secure: true in order to force SSL only cookies.
139
+ # config.rememberable_options = {}
94
140
 
95
141
  # ==> Configuration for :validatable
96
- # Range for password length. Default is 6..128.
97
- # config.password_length = 6..128
142
+ # Range for password length.
143
+ config.password_length = 8..128
98
144
 
99
- # Regex to use to validate the email address
100
- # config.email_regexp = /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i
145
+ # Email regex used to validate email formats. It simply asserts that
146
+ # one (and only one) @ exists in the given string. This is mainly
147
+ # to give user feedback and not to assert the e-mail validity.
148
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
101
149
 
102
150
  # ==> Configuration for :timeoutable
103
151
  # The time you want to timeout the user session without activity. After this
104
152
  # time the user will be asked for credentials again. Default is 30 minutes.
105
153
  # config.timeout_in = 30.minutes
106
154
 
155
+ # If true, expires auth token on session timeout.
156
+ # config.expire_auth_token_on_timeout = false
157
+
107
158
  # ==> Configuration for :lockable
108
159
  # Defines which strategy will be used to lock an account.
109
160
  # :failed_attempts = Locks an account after a number of failed attempts to sign in.
@@ -127,6 +178,9 @@ Devise.setup do |config|
127
178
  # Time interval to unlock the account if :time is enabled as unlock_strategy.
128
179
  # config.unlock_in = 1.hour
129
180
 
181
+ # Warn on the last attempt before the account is locked.
182
+ # config.last_attempt_warning = false
183
+
130
184
  # ==> Configuration for :recoverable
131
185
  #
132
186
  # Defines which key will be used when recovering the password for an account
@@ -135,24 +189,18 @@ Devise.setup do |config|
135
189
  # Time interval you can reset your password with a reset password key.
136
190
  # Don't put a too small interval or your users won't have the time to
137
191
  # change their passwords.
138
- config.reset_password_within = 2.hours
192
+ config.reset_password_within = 6.hours
139
193
 
140
194
  # ==> Configuration for :encryptable
141
195
  # Allow you to use another encryption algorithm besides bcrypt (default). You can use
142
196
  # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
143
197
  # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
144
198
  # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
145
- # REST_AUTH_SITE_KEY to pepper)
199
+ # REST_AUTH_SITE_KEY to pepper).
200
+ #
201
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
146
202
  # config.encryptor = :sha512
147
203
 
148
- # ==> Configuration for :token_authenticatable
149
- # Defines name of the authentication token params key
150
- # config.token_authentication_key = :auth_token
151
-
152
- # If true, authentication through token does not store user in session and needs
153
- # to be supplied on each request. Useful if you are using the token as API token.
154
- # config.stateless_token = false
155
-
156
204
  # ==> Scopes configuration
157
205
  # Turn scoped views on. Before rendering "sessions/new", it will first check for
158
206
  # "users/sessions/new". It's turned off by default because it's slower if you
@@ -163,9 +211,8 @@ Devise.setup do |config|
163
211
  # devise role declared in your routes (usually :user).
164
212
  # config.default_scope = :user
165
213
 
166
- # Configure sign_out behavior.
167
- # Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
168
- # The default is true, which means any logout action will sign out all active scopes.
214
+ # Set this configuration to false if you want /users/sign_out to sign out
215
+ # only the current scope. By default, Devise signs out all scopes.
169
216
  # config.sign_out_all_scopes = true
170
217
 
171
218
  # ==> Navigation configuration
@@ -176,25 +223,37 @@ Devise.setup do |config|
176
223
  # If you have any extra navigational formats, like :iphone or :mobile, you
177
224
  # should add them to the navigational formats lists.
178
225
  #
179
- # The :"*/*" and "*/*" formats below is required to match Internet
180
- # Explorer requests.
181
- # config.navigational_formats = [:"*/*", "*/*", :html]
226
+ # The "*/*" below is required to match Internet Explorer requests.
227
+ # config.navigational_formats = ['*/*', :html]
182
228
 
183
- # The default HTTP method used to sign out a resource. Default is :get.
184
- # config.sign_out_via = :get
229
+ # The default HTTP method used to sign out a resource. Default is :delete.
230
+ config.sign_out_via = :delete
185
231
 
186
232
  # ==> OmniAuth
187
233
  # Add a new OmniAuth provider. Check the wiki for more information on setting
188
234
  # up on your models and hooks.
189
- # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
235
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
190
236
 
191
237
  # ==> Warden configuration
192
238
  # If you want to use other strategies, that are not supported by Devise, or
193
239
  # change the failure app, you can configure them inside the config.warden block.
194
240
  #
195
241
  # config.warden do |manager|
196
- # manager.failure_app = AnotherApp
197
242
  # manager.intercept_401 = false
198
- # manager.default_strategies(:scope => :user).unshift :some_external_strategy
243
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
199
244
  # end
245
+
246
+ # ==> Mountable engine configurations
247
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
248
+ # is mountable, there are some extra configurations to be taken into account.
249
+ # The following options are available, assuming the engine is mounted as:
250
+ #
251
+ # mount MyEngine, at: '/my_engine'
252
+ #
253
+ # The router that invoked `devise_for`, in the example above, would be:
254
+ # config.router_name = :my_engine
255
+ #
256
+ # When using omniauth, Devise cannot automatically set Omniauth path,
257
+ # so you need to do it manually. For the users scope, it would be:
258
+ # config.omniauth_path_prefix = '/my_engine/users/auth'
200
259
  end
@@ -5,3 +5,5 @@
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
7
  Dummy::Application.config.secret_token = '65fd04c1054a3cd0baed789a53b07bfe23af5f538ca6c679ac96535aed3a4bd945b95c5d64c92db574d7fcc5027bf7647638e34dcdb230b83eaca10c5790079a'
8
+ Dummy::Application.config.secret_key_base = '2137d0193d209f4a4b554de1a294d1af1a3394856f03d79b709e3ab338c074eb1f819902799dcdc2a59bdea3fe00a44cad497a4ff7834bdbe8a98502ebf5bfaf' if Rails::VERSION::MAJOR == 4
9
+
@@ -1,53 +1,59 @@
1
- # Additional translations at http://github.com/plataformatec/devise/wiki/I18n
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
2
 
3
3
  en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your account was successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
+ 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."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid email or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account will be locked."
15
+ not_found_in_database: "Invalid email or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your account before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock Instructions"
26
+ omniauth_callbacks:
27
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
+ success: "Successfully authenticated from %{kind} account."
29
+ passwords:
30
+ 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."
31
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
32
+ 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."
33
+ updated: "Your password was changed successfully. You are now signed in."
34
+ updated_not_active: "Your password was changed successfully."
35
+ registrations:
36
+ destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
37
+ signed_up: "Welcome! You have signed up successfully."
38
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
+ 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."
41
+ 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."
42
+ updated: "You updated your account successfully."
43
+ sessions:
44
+ signed_in: "Signed in successfully."
45
+ signed_out: "Signed out successfully."
46
+ unlocks:
47
+ send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
48
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
49
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
4
50
  errors:
5
51
  messages:
52
+ already_confirmed: "was already confirmed, please try signing in"
53
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
6
54
  expired: "has expired, please request a new one"
7
55
  not_found: "not found"
8
- already_confirmed: "was already confirmed, please try signing in"
9
56
  not_locked: "was not locked"
10
57
  not_saved:
11
58
  one: "1 error prohibited this %{resource} from being saved:"
12
59
  other: "%{count} errors prohibited this %{resource} from being saved:"
13
-
14
- devise:
15
- failure:
16
- already_authenticated: 'You are already signed in.'
17
- unauthenticated: 'You need to sign in or sign up before continuing.'
18
- unconfirmed: 'You have to confirm your account before continuing.'
19
- locked: 'Your account is locked.'
20
- invalid: 'Invalid email or password.'
21
- invalid_token: 'Invalid authentication token.'
22
- timeout: 'Your session expired, please sign in again to continue.'
23
- inactive: 'Your account was not activated yet.'
24
- sessions:
25
- signed_in: 'Signed in successfully.'
26
- signed_out: 'Signed out successfully.'
27
- passwords:
28
- send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
- updated: 'Your password was changed successfully. You are now signed in.'
30
- send_paranoid_instructions: "If your e-mail exists on our database, you will receive a password recovery link on your e-mail"
31
- confirmations:
32
- send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
33
- send_paranoid_instructions: 'If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
34
- confirmed: 'Your account was successfully confirmed. You are now signed in.'
35
- registrations:
36
- signed_up: 'Welcome! You have signed up successfully.'
37
- inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
38
- updated: 'You updated your account successfully.'
39
- destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
40
- unlocks:
41
- send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
42
- unlocked: 'Your account was successfully unlocked. You are now signed in.'
43
- send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
44
- omniauth_callbacks:
45
- success: 'Successfully authorized from %{kind} account.'
46
- failure: 'Could not authorize you from %{kind} because "%{reason}".'
47
- mailer:
48
- confirmation_instructions:
49
- subject: 'Confirmation instructions'
50
- reset_password_instructions:
51
- subject: 'Reset password instructions'
52
- unlock_instructions:
53
- subject: 'Unlock Instructions'