xn_devise_ldap_authenticatable 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/CHANGELOG.md +7 -0
  4. data/Gemfile +8 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +143 -0
  7. data/Rakefile +16 -0
  8. data/lib/devise_ldap_authenticatable.rb +49 -0
  9. data/lib/devise_ldap_authenticatable/exception.rb +6 -0
  10. data/lib/devise_ldap_authenticatable/ldap/adapter.rb +87 -0
  11. data/lib/devise_ldap_authenticatable/ldap/connection.rb +243 -0
  12. data/lib/devise_ldap_authenticatable/logger.rb +11 -0
  13. data/lib/devise_ldap_authenticatable/model.rb +120 -0
  14. data/lib/devise_ldap_authenticatable/strategy.rb +39 -0
  15. data/lib/devise_ldap_authenticatable/version.rb +3 -0
  16. data/lib/generators/devise_ldap_authenticatable/install_generator.rb +63 -0
  17. data/lib/generators/devise_ldap_authenticatable/templates/ldap.yml +55 -0
  18. data/spec/ldap/.gitignore +2 -0
  19. data/spec/ldap/base.ldif +73 -0
  20. data/spec/ldap/clear.ldif +26 -0
  21. data/spec/ldap/local.schema +6 -0
  22. data/spec/ldap/openldap-data/.gitignore +2 -0
  23. data/spec/ldap/openldap-data/run/.gitignore +2 -0
  24. data/spec/ldap/openldap-data/run/.gitkeep +0 -0
  25. data/spec/ldap/run-server +31 -0
  26. data/spec/ldap/server.pem +38 -0
  27. data/spec/ldap/slapd-test.conf.erb +107 -0
  28. data/spec/rails_app/Rakefile +7 -0
  29. data/spec/rails_app/app/controllers/application_controller.rb +7 -0
  30. data/spec/rails_app/app/controllers/posts_controller.rb +15 -0
  31. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  32. data/spec/rails_app/app/helpers/posts_helper.rb +2 -0
  33. data/spec/rails_app/app/models/post.rb +2 -0
  34. data/spec/rails_app/app/models/user.rb +7 -0
  35. data/spec/rails_app/app/views/layouts/application.html.erb +26 -0
  36. data/spec/rails_app/app/views/posts/index.html.erb +2 -0
  37. data/spec/rails_app/config.ru +4 -0
  38. data/spec/rails_app/config/application.rb +46 -0
  39. data/spec/rails_app/config/boot.rb +13 -0
  40. data/spec/rails_app/config/cucumber.yml +8 -0
  41. data/spec/rails_app/config/database.yml +25 -0
  42. data/spec/rails_app/config/environment.rb +5 -0
  43. data/spec/rails_app/config/environments/development.rb +21 -0
  44. data/spec/rails_app/config/environments/production.rb +46 -0
  45. data/spec/rails_app/config/environments/test.rb +34 -0
  46. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  47. data/spec/rails_app/config/initializers/devise.rb +247 -0
  48. data/spec/rails_app/config/initializers/inflections.rb +10 -0
  49. data/spec/rails_app/config/initializers/mime_types.rb +5 -0
  50. data/spec/rails_app/config/initializers/secret_token.rb +7 -0
  51. data/spec/rails_app/config/initializers/session_store.rb +8 -0
  52. data/spec/rails_app/config/ldap.yml +22 -0
  53. data/spec/rails_app/config/ldap_with_boolean_ssl.yml +22 -0
  54. data/spec/rails_app/config/ldap_with_erb.yml +23 -0
  55. data/spec/rails_app/config/ldap_with_uid.yml +18 -0
  56. data/spec/rails_app/config/locales/devise.en.yml +59 -0
  57. data/spec/rails_app/config/locales/en.yml +5 -0
  58. data/spec/rails_app/config/routes.rb +64 -0
  59. data/spec/rails_app/config/ssl_ldap.yml +21 -0
  60. data/spec/rails_app/config/ssl_ldap_with_erb.yml +23 -0
  61. data/spec/rails_app/config/ssl_ldap_with_uid.yml +18 -0
  62. data/spec/rails_app/db/migrate/20100708120448_devise_create_users.rb +40 -0
  63. data/spec/rails_app/db/schema.rb +35 -0
  64. data/spec/rails_app/features/manage_logins.feature +35 -0
  65. data/spec/rails_app/features/step_definitions/login_steps.rb +21 -0
  66. data/spec/rails_app/features/step_definitions/web_steps.rb +219 -0
  67. data/spec/rails_app/features/support/env.rb +58 -0
  68. data/spec/rails_app/features/support/paths.rb +38 -0
  69. data/spec/rails_app/lib/tasks/.gitkeep +0 -0
  70. data/spec/rails_app/lib/tasks/cucumber.rake +53 -0
  71. data/spec/rails_app/public/404.html +26 -0
  72. data/spec/rails_app/public/422.html +26 -0
  73. data/spec/rails_app/public/500.html +26 -0
  74. data/spec/rails_app/public/images/rails.png +0 -0
  75. data/spec/rails_app/public/javascripts/application.js +2 -0
  76. data/spec/rails_app/public/javascripts/controls.js +965 -0
  77. data/spec/rails_app/public/javascripts/dragdrop.js +974 -0
  78. data/spec/rails_app/public/javascripts/effects.js +1123 -0
  79. data/spec/rails_app/public/javascripts/prototype.js +4874 -0
  80. data/spec/rails_app/public/javascripts/rails.js +118 -0
  81. data/spec/rails_app/public/stylesheets/.gitkeep +0 -0
  82. data/spec/rails_app/script/cucumber +10 -0
  83. data/spec/rails_app/script/rails +6 -0
  84. data/spec/spec_helper.rb +55 -0
  85. data/spec/support/factories.rb +16 -0
  86. data/spec/unit/connection_spec.rb +14 -0
  87. data/spec/unit/user_spec.rb +331 -0
  88. data/xn_devise_ldap_authenticatable.gemspec +36 -0
  89. metadata +363 -0
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,247 @@
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
+ # ==> LDAP Configuration
5
+ # config.ldap_logger = true
6
+ # config.ldap_create_user = false
7
+ # config.ldap_update_password = true
8
+ # config.ldap_config = "#{Rails.root}/config/ldap.yml"
9
+ # config.ldap_check_group_membership = false
10
+ # config.ldap_check_attributes = false
11
+ # config.ldap_use_admin_to_bind = false
12
+ # config.ldap_ad_group_check = false
13
+
14
+ # ==> Mailer Configuration
15
+ # Configure the e-mail address which will be shown in Devise::Mailer,
16
+ # note that it will be overwritten if you use your own mailer class with default "from" parameter.
17
+ config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
18
+
19
+
20
+ if ::Devise.respond_to?(:secret_key)
21
+ ::Devise.secret_key = '012a16191a7f61e84e55704e34b73db991a23ba396b6b7760596a3e80073e4464c55421c42a1a34327dee44828bec6745c48eba10cc0866799ec95c09ea27ada'
22
+ end
23
+
24
+ # Configure the class responsible to send e-mails.
25
+ # config.mailer = "Devise::Mailer"
26
+
27
+ # ==> ORM configuration
28
+ # Load and configure the ORM. Supports :active_record (default) and
29
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
30
+ # available as additional gems.
31
+ require 'devise/orm/active_record'
32
+
33
+ # ==> Configuration for any authentication mechanism
34
+ # Configure which keys are used when authenticating a user. The default is
35
+ # just :email. You can configure it to use [:username, :subdomain], so for
36
+ # authenticating a user, both parameters are required. Remember that those
37
+ # parameters are used only when authenticating and not when retrieving from
38
+ # session. If you need permissions, you should implement that in a before filter.
39
+ # You can also supply a hash where the value is a boolean determining whether
40
+ # or not authentication should be aborted when the value is not present.
41
+ # config.authentication_keys = [ :email ]
42
+
43
+ # Configure parameters from the request object used for authentication. Each entry
44
+ # given should be a request method and it will automatically be passed to the
45
+ # find_for_authentication method and considered in your model lookup. For instance,
46
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
47
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
48
+ # config.request_keys = []
49
+
50
+ # Configure which authentication keys should be case-insensitive.
51
+ # These keys will be downcased upon creating or modifying a user and when used
52
+ # to authenticate or find a user. Default is :email.
53
+ config.case_insensitive_keys = [ :email ]
54
+
55
+ # Configure which authentication keys should have whitespace stripped.
56
+ # These keys will have whitespace before and after removed upon creating or
57
+ # modifying a user and when used to authenticate or find a user. Default is :email.
58
+ config.strip_whitespace_keys = [ :email ]
59
+
60
+ # Tell if authentication through request.params is enabled. True by default.
61
+ # It can be set to an array that will enable params authentication only for the
62
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
63
+ # enable it only for database (email + password) authentication.
64
+ # config.params_authenticatable = true
65
+
66
+ # Tell if authentication through HTTP Basic Auth is enabled. False by default.
67
+ # It can be set to an array that will enable http authentication only for the
68
+ # given strategies, for example, `config.http_authenticatable = [:token]` will
69
+ # enable it only for token authentication.
70
+ # config.http_authenticatable = false
71
+
72
+ # If http headers should be returned for AJAX requests. True by default.
73
+ # config.http_authenticatable_on_xhr = true
74
+
75
+ # The realm used in Http Basic Authentication. "Application" by default.
76
+ # config.http_authentication_realm = "Application"
77
+
78
+ # It will change confirmation, password recovery and other workflows
79
+ # to behave the same regardless if the e-mail provided was right or wrong.
80
+ # Does not affect registerable.
81
+ # config.paranoid = true
82
+
83
+ # By default Devise will store the user in session. You can skip storage for
84
+ # :http_auth and :token_auth by adding those symbols to the array below.
85
+ # Notice that if you are skipping storage for all authentication paths, you
86
+ # may want to disable generating routes to Devise's sessions controller by
87
+ # passing :skip => :sessions to `devise_for` in your config/routes.rb
88
+ config.skip_session_storage = [:http_auth]
89
+
90
+ # ==> Configuration for :database_authenticatable
91
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
92
+ # using other encryptors, it sets how many times you want the password re-encrypted.
93
+ #
94
+ # Limiting the stretches to just one in testing will increase the performance of
95
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
96
+ # a value less than 10 in other environments.
97
+ config.stretches = Rails.env.test? ? 1 : 10
98
+
99
+ # Setup a pepper to generate the encrypted password.
100
+ # config.pepper = "589f0e9c372367e7176cf1617494a99b3f26c2dd2a3ca617b2aa9fe7d9a9066b6a04489f985f2e15f3a3f32f770f36d0a0c3d42ea846562d0bb0f99662c0add1"
101
+
102
+ # ==> Configuration for :confirmable
103
+ # A period that the user is allowed to access the website even without
104
+ # confirming his account. For instance, if set to 2.days, the user will be
105
+ # able to access the website for two days without confirming his account,
106
+ # access will be blocked just in the third day. Default is 0.days, meaning
107
+ # the user cannot access the website without confirming his account.
108
+ # config.allow_unconfirmed_access_for = 2.days
109
+
110
+ # If true, requires any email changes to be confirmed (exactly the same way as
111
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
112
+ # db field (see migrations). Until confirmed new email is stored in
113
+ # unconfirmed email column, and copied to email column on successful confirmation.
114
+ config.reconfirmable = true
115
+
116
+ # Defines which key will be used when confirming an account
117
+ # config.confirmation_keys = [ :email ]
118
+
119
+ # ==> Configuration for :rememberable
120
+ # The time the user will be remembered without asking for credentials again.
121
+ # config.remember_for = 2.weeks
122
+
123
+ # If true, extends the user's remember period when remembered via cookie.
124
+ # config.extend_remember_period = false
125
+
126
+ # Options to be passed to the created cookie. For instance, you can set
127
+ # :secure => true in order to force SSL only cookies.
128
+ # config.rememberable_options = {}
129
+
130
+ # ==> Configuration for :validatable
131
+ # Range for password length. Default is 6..128.
132
+ # config.password_length = 6..128
133
+
134
+ # Email regex used to validate email formats. It simply asserts that
135
+ # an one (and only one) @ exists in the given string. This is mainly
136
+ # to give user feedback and not to assert the e-mail validity.
137
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
138
+
139
+ # ==> Configuration for :timeoutable
140
+ # The time you want to timeout the user session without activity. After this
141
+ # time the user will be asked for credentials again. Default is 30 minutes.
142
+ # config.timeout_in = 30.minutes
143
+
144
+ # If true, expires auth token on session timeout.
145
+ # config.expire_auth_token_on_timeout = false
146
+
147
+ # ==> Configuration for :lockable
148
+ # Defines which strategy will be used to lock an account.
149
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
150
+ # :none = No lock strategy. You should handle locking by yourself.
151
+ # config.lock_strategy = :failed_attempts
152
+
153
+ # Defines which key will be used when locking and unlocking an account
154
+ # config.unlock_keys = [ :email ]
155
+
156
+ # Defines which strategy will be used to unlock an account.
157
+ # :email = Sends an unlock link to the user email
158
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
159
+ # :both = Enables both strategies
160
+ # :none = No unlock strategy. You should handle unlocking by yourself.
161
+ # config.unlock_strategy = :both
162
+
163
+ # Number of authentication tries before locking an account if lock_strategy
164
+ # is failed attempts.
165
+ # config.maximum_attempts = 20
166
+
167
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
168
+ # config.unlock_in = 1.hour
169
+
170
+ # ==> Configuration for :recoverable
171
+ #
172
+ # Defines which key will be used when recovering the password for an account
173
+ # config.reset_password_keys = [ :email ]
174
+
175
+ # Time interval you can reset your password with a reset password key.
176
+ # Don't put a too small interval or your users won't have the time to
177
+ # change their passwords.
178
+ config.reset_password_within = 6.hours
179
+
180
+ # ==> Configuration for :encryptable
181
+ # Allow you to use another encryption algorithm besides bcrypt (default). You can use
182
+ # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
183
+ # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
184
+ # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
185
+ # REST_AUTH_SITE_KEY to pepper)
186
+ # config.encryptor = :sha512
187
+
188
+ # ==> Configuration for :token_authenticatable
189
+ # Defines name of the authentication token params key
190
+ # config.token_authentication_key = :auth_token
191
+
192
+ # ==> Scopes configuration
193
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
194
+ # "users/sessions/new". It's turned off by default because it's slower if you
195
+ # are using only default views.
196
+ # config.scoped_views = false
197
+
198
+ # Configure the default scope given to Warden. By default it's the first
199
+ # devise role declared in your routes (usually :user).
200
+ # config.default_scope = :user
201
+
202
+ # Set this configuration to false if you want /users/sign_out to sign out
203
+ # only the current scope. By default, Devise signs out all scopes.
204
+ # config.sign_out_all_scopes = true
205
+
206
+ # ==> Navigation configuration
207
+ # Lists the formats that should be treated as navigational. Formats like
208
+ # :html, should redirect to the sign in page when the user does not have
209
+ # access, but formats like :xml or :json, should return 401.
210
+ #
211
+ # If you have any extra navigational formats, like :iphone or :mobile, you
212
+ # should add them to the navigational formats lists.
213
+ #
214
+ # The "*/*" below is required to match Internet Explorer requests.
215
+ # config.navigational_formats = ["*/*", :html]
216
+
217
+ # The default HTTP method used to sign out a resource. Default is :delete.
218
+ config.sign_out_via = :delete
219
+
220
+ # ==> OmniAuth
221
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
222
+ # up on your models and hooks.
223
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
224
+
225
+ # ==> Warden configuration
226
+ # If you want to use other strategies, that are not supported by Devise, or
227
+ # change the failure app, you can configure them inside the config.warden block.
228
+ #
229
+ # config.warden do |manager|
230
+ # manager.intercept_401 = false
231
+ # manager.default_strategies(:scope => :user).unshift :some_external_strategy
232
+ # end
233
+
234
+ # ==> Mountable engine configurations
235
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
236
+ # is mountable, there are some extra configurations to be taken into account.
237
+ # The following options are available, assuming the engine is mounted as:
238
+ #
239
+ # mount MyEngine, at: "/my_engine"
240
+ #
241
+ # The router that invoked `devise_for`, in the example above, would be:
242
+ # config.router_name = :my_engine
243
+ #
244
+ # When using omniauth, Devise cannot automatically set Omniauth path,
245
+ # so you need to do it manually. For the users scope, it would be:
246
+ # config.omniauth_path_prefix = "/my_engine/users/auth"
247
+ end
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Rails.application.config.secret_token = '91f200017212d5529ed7dea1959a9bb36b937bdbddab9180114119a36dd9283c7f8c8d22cd299ce6c6f40e6b8121972953658ef357991b4716b7749a9b215402'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, :key => '_rails_app_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rake db:sessions:create")
8
+ # Rails.application.config.session_store :active_record_store
@@ -0,0 +1,22 @@
1
+ authorizations: &AUTHORIZATIONS
2
+ ## Authorization
3
+ group_base: ou=groups,dc=test,dc=com
4
+ required_groups:
5
+ - cn=admins,ou=groups,dc=test,dc=com
6
+ - ["authorizationRole", "cn=users,ou=groups,dc=test,dc=com"]
7
+ require_attribute:
8
+ objectClass: inetOrgPerson
9
+ authorizationRole: blogAdmin
10
+
11
+ test: &TEST
12
+ host: localhost
13
+ port: 3389
14
+ attribute: cn
15
+ base: ou=people,dc=test,dc=com
16
+ admin_user: cn=admin,dc=test,dc=com
17
+ admin_password: secret
18
+ ssl: false
19
+ <<: *AUTHORIZATIONS
20
+
21
+ development:
22
+ <<: *TEST
@@ -0,0 +1,22 @@
1
+ authorizations: &AUTHORIZATIONS
2
+ ## Authorization
3
+ group_base: ou=groups,dc=test,dc=com
4
+ required_groups:
5
+ - cn=admins,ou=groups,dc=test,dc=com
6
+ - ["authorizationRole", "cn=users,ou=groups,dc=test,dc=com"]
7
+ require_attribute:
8
+ objectClass: inetOrgPerson
9
+ authorizationRole: blogAdmin
10
+
11
+ test: &TEST
12
+ host: localhost
13
+ port: 3389
14
+ attribute: cn
15
+ base: ou=people,dc=test,dc=com
16
+ admin_user: cn=admin,dc=test,dc=com
17
+ admin_password: secret
18
+ ssl: true
19
+ <<: *AUTHORIZATIONS
20
+
21
+ development:
22
+ <<: *TEST
@@ -0,0 +1,23 @@
1
+ <% @base = "dc=test,dc=com" %>
2
+
3
+ authorizations: &AUTHORIZATIONS
4
+ ## Authorization
5
+ group_base: <%= "ou=groups,#{@base}" %>
6
+ required_groups:
7
+ - cn=admins,<%= "ou=groups,#{@base}" %>
8
+ require_attribute:
9
+ objectClass: inetOrgPerson
10
+ authorizationRole: blogAdmin
11
+
12
+ test: &TEST
13
+ host: <%= "localhost" %>
14
+ port: 3389
15
+ attribute: cn
16
+ base: <%= "ou=people,#{@base}" %>
17
+ admin_user: <%= "cn=admin,#{@base}" %>
18
+ admin_password: secret
19
+ ssl: false
20
+ <<: *AUTHORIZATIONS
21
+
22
+ development:
23
+ <<: *TEST
@@ -0,0 +1,18 @@
1
+ authorizations: &AUTHORIZATIONS
2
+ ## Authorization
3
+ group_base: ou=groups,dc=test,dc=com
4
+ required_groups:
5
+ - cn=admins,ou=groups,dc=test,dc=com
6
+ require_attribute:
7
+ objectClass: inetOrgPerson
8
+ authorizationRole: blogAdmin
9
+
10
+ test:
11
+ host: localhost
12
+ port: 3389
13
+ attribute: uid
14
+ base: ou=people,dc=test,dc=com
15
+ admin_user: cn=admin,dc=test,dc=com
16
+ admin_password: secret
17
+ ssl: false
18
+ <<: *AUTHORIZATIONS
@@ -0,0 +1,59 @@
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
+
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
+ not_found_in_database: "Your account is not present in this application's database."
21
+ invalid: 'Invalid email or password.'
22
+ invalid_token: 'Invalid authentication token.'
23
+ timeout: 'Your session expired, please sign in again to continue.'
24
+ inactive: 'Your account was not activated yet.'
25
+ sessions:
26
+ signed_in: 'Signed in successfully.'
27
+ signed_out: 'Signed out successfully.'
28
+ passwords:
29
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
30
+ updated: 'Your password was changed successfully. You are now signed in.'
31
+ updated_not_active: 'Your password was changed successfully.'
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
+ 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."
34
+ confirmations:
35
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
36
+ 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.'
37
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
38
+ registrations:
39
+ signed_up: 'Welcome! You have signed up successfully.'
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
+ signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
42
+ signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
43
+ updated: 'You updated your account successfully.'
44
+ 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."
45
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
46
+ unlocks:
47
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
48
+ unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
49
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
50
+ omniauth_callbacks:
51
+ success: 'Successfully authenticated from %{kind} account.'
52
+ failure: 'Could not authenticate you from %{kind} because "%{reason}".'
53
+ mailer:
54
+ confirmation_instructions:
55
+ subject: 'Confirmation instructions'
56
+ reset_password_instructions:
57
+ subject: 'Reset password instructions'
58
+ unlock_instructions:
59
+ subject: 'Unlock Instructions'
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"