devise 4.5.0 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/CHANGELOG.md +30 -1
- data/MIT-LICENSE +1 -1
- data/README.md +18 -0
- data/app/controllers/devise/passwords_controller.rb +1 -0
- data/app/controllers/devise/registrations_controller.rb +25 -7
- data/app/helpers/devise_helper.rb +10 -19
- data/app/views/devise/confirmations/new.html.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +1 -1
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/registrations/edit.html.erb +1 -1
- data/app/views/devise/registrations/new.html.erb +1 -1
- data/app/views/devise/sessions/new.html.erb +2 -2
- data/app/views/devise/shared/_error_messages.html.erb +15 -0
- data/app/views/devise/shared/_links.html.erb +7 -7
- data/app/views/devise/unlocks/new.html.erb +1 -1
- data/config/locales/en.yml +1 -0
- data/lib/devise.rb +4 -0
- data/lib/devise/controllers/helpers.rb +1 -1
- data/lib/devise/failure_app.rb +28 -3
- data/lib/devise/models/authenticatable.rb +7 -15
- data/lib/devise/models/confirmable.rb +4 -1
- data/lib/devise/models/database_authenticatable.rb +41 -6
- data/lib/devise/models/lockable.rb +2 -2
- data/lib/devise/models/registerable.rb +2 -0
- data/lib/devise/strategies/database_authenticatable.rb +3 -0
- data/lib/devise/test/controller_helpers.rb +1 -1
- data/lib/devise/version.rb +1 -1
- data/lib/generators/active_record/devise_generator.rb +4 -4
- data/lib/generators/devise/controllers_generator.rb +1 -1
- data/lib/generators/templates/devise.rb +12 -3
- data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +1 -1
- data/lib/generators/templates/simple_form_for/registrations/new.html.erb +1 -1
- metadata +5 -305
- data/.gitignore +0 -10
- data/.travis.yml +0 -69
- data/.yardopts +0 -9
- data/CODE_OF_CONDUCT.md +0 -22
- data/CONTRIBUTING.md +0 -79
- data/Gemfile +0 -39
- data/Gemfile.lock +0 -202
- data/ISSUE_TEMPLATE.md +0 -19
- data/Rakefile +0 -37
- data/bin/test +0 -13
- data/devise.gemspec +0 -28
- data/devise.png +0 -0
- data/gemfiles/Gemfile.rails-4.1-stable +0 -32
- data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
- data/gemfiles/Gemfile.rails-4.2-stable +0 -32
- data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
- data/gemfiles/Gemfile.rails-5.0-stable +0 -33
- data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
- data/gemfiles/Gemfile.rails-5.2-rc1 +0 -26
- data/gemfiles/Gemfile.rails-5.2-rc1.lock +0 -201
- data/guides/bug_report_templates/integration_test.rb +0 -106
- data/test/controllers/custom_registrations_controller_test.rb +0 -42
- data/test/controllers/custom_strategy_test.rb +0 -66
- data/test/controllers/helper_methods_test.rb +0 -24
- data/test/controllers/helpers_test.rb +0 -318
- data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
- data/test/controllers/internal_helpers_test.rb +0 -129
- data/test/controllers/load_hooks_controller_test.rb +0 -21
- data/test/controllers/passwords_controller_test.rb +0 -34
- data/test/controllers/sessions_controller_test.rb +0 -108
- data/test/controllers/url_helpers_test.rb +0 -67
- data/test/delegator_test.rb +0 -21
- data/test/devise_test.rb +0 -109
- data/test/failure_app_test.rb +0 -346
- data/test/generators/active_record_generator_test.rb +0 -130
- data/test/generators/controllers_generator_test.rb +0 -50
- data/test/generators/devise_generator_test.rb +0 -41
- data/test/generators/install_generator_test.rb +0 -26
- data/test/generators/mongoid_generator_test.rb +0 -25
- data/test/generators/views_generator_test.rb +0 -105
- data/test/helpers/devise_helper_test.rb +0 -51
- data/test/integration/authenticatable_test.rb +0 -706
- data/test/integration/confirmable_test.rb +0 -326
- data/test/integration/database_authenticatable_test.rb +0 -110
- data/test/integration/http_authenticatable_test.rb +0 -114
- data/test/integration/lockable_test.rb +0 -242
- data/test/integration/mounted_engine_test.rb +0 -38
- data/test/integration/omniauthable_test.rb +0 -148
- data/test/integration/recoverable_test.rb +0 -349
- data/test/integration/registerable_test.rb +0 -365
- data/test/integration/rememberable_test.rb +0 -219
- data/test/integration/timeoutable_test.rb +0 -186
- data/test/integration/trackable_test.rb +0 -99
- data/test/mailers/confirmation_instructions_test.rb +0 -117
- data/test/mailers/email_changed_test.rb +0 -132
- data/test/mailers/mailer_test.rb +0 -20
- data/test/mailers/reset_password_instructions_test.rb +0 -98
- data/test/mailers/unlock_instructions_test.rb +0 -93
- data/test/mapping_test.rb +0 -136
- data/test/models/authenticatable_test.rb +0 -25
- data/test/models/confirmable_test.rb +0 -549
- data/test/models/database_authenticatable_test.rb +0 -290
- data/test/models/lockable_test.rb +0 -352
- data/test/models/omniauthable_test.rb +0 -9
- data/test/models/recoverable_test.rb +0 -263
- data/test/models/registerable_test.rb +0 -9
- data/test/models/rememberable_test.rb +0 -184
- data/test/models/serializable_test.rb +0 -60
- data/test/models/timeoutable_test.rb +0 -53
- data/test/models/trackable_test.rb +0 -80
- data/test/models/validatable_test.rb +0 -121
- data/test/models_test.rb +0 -155
- data/test/omniauth/config_test.rb +0 -61
- data/test/omniauth/url_helpers_test.rb +0 -53
- data/test/orm/active_record.rb +0 -24
- data/test/orm/mongoid.rb +0 -15
- data/test/parameter_sanitizer_test.rb +0 -105
- data/test/rails_app/Rakefile +0 -6
- data/test/rails_app/app/active_record/admin.rb +0 -8
- data/test/rails_app/app/active_record/shim.rb +0 -4
- data/test/rails_app/app/active_record/user.rb +0 -20
- data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
- data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
- data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
- data/test/rails_app/app/active_record/user_without_email.rb +0 -10
- data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
- data/test/rails_app/app/controllers/admins_controller.rb +0 -8
- data/test/rails_app/app/controllers/application_controller.rb +0 -13
- data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
- data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
- data/test/rails_app/app/controllers/home_controller.rb +0 -31
- data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
- data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
- data/test/rails_app/app/controllers/users_controller.rb +0 -33
- data/test/rails_app/app/helpers/application_helper.rb +0 -5
- data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
- data/test/rails_app/app/mailers/users/mailer.rb +0 -5
- data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
- data/test/rails_app/app/mongoid/admin.rb +0 -31
- data/test/rails_app/app/mongoid/shim.rb +0 -25
- data/test/rails_app/app/mongoid/user.rb +0 -50
- data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
- data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
- data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
- data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
- data/test/rails_app/app/views/admins/index.html.erb +0 -1
- data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
- data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
- data/test/rails_app/app/views/home/index.html.erb +0 -1
- data/test/rails_app/app/views/home/join.html.erb +0 -1
- data/test/rails_app/app/views/home/private.html.erb +0 -1
- data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
- data/test/rails_app/app/views/layouts/application.html.erb +0 -24
- data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
- data/test/rails_app/app/views/users/index.html.erb +0 -1
- data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
- data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
- data/test/rails_app/bin/bundle +0 -3
- data/test/rails_app/bin/rails +0 -4
- data/test/rails_app/bin/rake +0 -4
- data/test/rails_app/config.ru +0 -4
- data/test/rails_app/config/application.rb +0 -48
- data/test/rails_app/config/boot.rb +0 -27
- data/test/rails_app/config/database.yml +0 -18
- data/test/rails_app/config/environment.rb +0 -7
- data/test/rails_app/config/environments/development.rb +0 -32
- data/test/rails_app/config/environments/production.rb +0 -88
- data/test/rails_app/config/environments/test.rb +0 -47
- data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
- data/test/rails_app/config/initializers/devise.rb +0 -187
- data/test/rails_app/config/initializers/inflections.rb +0 -4
- data/test/rails_app/config/initializers/secret_token.rb +0 -5
- data/test/rails_app/config/initializers/session_store.rb +0 -3
- data/test/rails_app/config/routes.rb +0 -128
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
- data/test/rails_app/db/schema.rb +0 -57
- data/test/rails_app/lib/lazy_load_test_module.rb +0 -5
- data/test/rails_app/lib/shared_admin.rb +0 -23
- data/test/rails_app/lib/shared_user.rb +0 -32
- data/test/rails_app/lib/shared_user_without_email.rb +0 -28
- data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
- data/test/rails_app/public/404.html +0 -26
- data/test/rails_app/public/422.html +0 -26
- data/test/rails_app/public/500.html +0 -26
- data/test/rails_app/public/favicon.ico +0 -0
- data/test/rails_test.rb +0 -11
- data/test/routes_test.rb +0 -281
- data/test/secret_key_finder_test.rb +0 -121
- data/test/support/action_controller/record_identifier.rb +0 -12
- data/test/support/assertions.rb +0 -30
- data/test/support/helpers.rb +0 -83
- data/test/support/http_method_compatibility.rb +0 -53
- data/test/support/integration.rb +0 -95
- data/test/support/locale/en.yml +0 -8
- data/test/support/mongoid.yml +0 -6
- data/test/support/webrat/integrations/rails.rb +0 -35
- data/test/test/controller_helpers_test.rb +0 -193
- data/test/test/integration_helpers_test.rb +0 -34
- data/test/test_helper.rb +0 -36
- data/test/test_models.rb +0 -35
@@ -35,6 +35,22 @@ module Devise
|
|
35
35
|
attr_accessor :password_confirmation
|
36
36
|
end
|
37
37
|
|
38
|
+
def initialize(*args, &block)
|
39
|
+
@skip_email_changed_notification = false
|
40
|
+
@skip_password_change_notification = false
|
41
|
+
super
|
42
|
+
end
|
43
|
+
|
44
|
+
# Skips sending the email changed notification after_update
|
45
|
+
def skip_email_changed_notification!
|
46
|
+
@skip_email_changed_notification = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# Skips sending the password change notification after_update
|
50
|
+
def skip_password_change_notification!
|
51
|
+
@skip_password_change_notification = true
|
52
|
+
end
|
53
|
+
|
38
54
|
def self.required_fields(klass)
|
39
55
|
[:encrypted_password] + klass.authentication_keys
|
40
56
|
end
|
@@ -44,7 +60,7 @@ module Devise
|
|
44
60
|
# the hashed password.
|
45
61
|
def password=(new_password)
|
46
62
|
@password = new_password
|
47
|
-
self.encrypted_password = password_digest(@password)
|
63
|
+
self.encrypted_password = password_digest(@password)
|
48
64
|
end
|
49
65
|
|
50
66
|
# Verifies whether a password (ie from sign in) is the user password.
|
@@ -54,7 +70,7 @@ module Devise
|
|
54
70
|
|
55
71
|
# Set password and password confirmation to nil
|
56
72
|
def clean_up_passwords
|
57
|
-
|
73
|
+
@password = @password_confirmation = nil
|
58
74
|
end
|
59
75
|
|
60
76
|
# Update record attributes when :current_password matches, otherwise
|
@@ -65,6 +81,15 @@ module Devise
|
|
65
81
|
# their password). In case the password field is rejected, the confirmation
|
66
82
|
# is also rejected as long as it is also blank.
|
67
83
|
def update_with_password(params, *options)
|
84
|
+
if options.present?
|
85
|
+
ActiveSupport::Deprecation.warn <<-DEPRECATION.strip_heredoc
|
86
|
+
[Devise] The second argument of `DatabaseAuthenticatable#update_with_password`
|
87
|
+
(`options`) is deprecated and it will be removed in the next major version.
|
88
|
+
It was added to support a feature deprecated in Rails 4, so you can safely remove it
|
89
|
+
from your code.
|
90
|
+
DEPRECATION
|
91
|
+
end
|
92
|
+
|
68
93
|
current_password = params.delete(:current_password)
|
69
94
|
|
70
95
|
if params[:password].blank?
|
@@ -98,6 +123,15 @@ module Devise
|
|
98
123
|
# end
|
99
124
|
#
|
100
125
|
def update_without_password(params, *options)
|
126
|
+
if options.present?
|
127
|
+
ActiveSupport::Deprecation.warn <<-DEPRECATION.strip_heredoc
|
128
|
+
[Devise] The second argument of `DatabaseAuthenticatable#update_without_password`
|
129
|
+
(`options`) is deprecated and it will be removed in the next major version.
|
130
|
+
It was added to support a feature deprecated in Rails 4, so you can safely remove it
|
131
|
+
from your code.
|
132
|
+
DEPRECATION
|
133
|
+
end
|
134
|
+
|
101
135
|
params.delete(:password)
|
102
136
|
params.delete(:password_confirmation)
|
103
137
|
|
@@ -164,26 +198,27 @@ module Devise
|
|
164
198
|
# See https://github.com/plataformatec/devise-encryptable for examples
|
165
199
|
# of other hashing engines.
|
166
200
|
def password_digest(password)
|
201
|
+
return if password.blank?
|
167
202
|
Devise::Encryptor.digest(self.class, password)
|
168
203
|
end
|
169
204
|
|
170
205
|
if Devise.activerecord51?
|
171
206
|
def send_email_changed_notification?
|
172
|
-
self.class.send_email_changed_notification && saved_change_to_email?
|
207
|
+
self.class.send_email_changed_notification && saved_change_to_email? && !@skip_email_changed_notification
|
173
208
|
end
|
174
209
|
else
|
175
210
|
def send_email_changed_notification?
|
176
|
-
self.class.send_email_changed_notification && email_changed?
|
211
|
+
self.class.send_email_changed_notification && email_changed? && !@skip_email_changed_notification
|
177
212
|
end
|
178
213
|
end
|
179
214
|
|
180
215
|
if Devise.activerecord51?
|
181
216
|
def send_password_change_notification?
|
182
|
-
self.class.send_password_change_notification && saved_change_to_encrypted_password?
|
217
|
+
self.class.send_password_change_notification && saved_change_to_encrypted_password? && !@skip_password_change_notification
|
183
218
|
end
|
184
219
|
else
|
185
220
|
def send_password_change_notification?
|
186
|
-
self.class.send_password_change_notification && encrypted_password_changed?
|
221
|
+
self.class.send_password_change_notification && encrypted_password_changed? && !@skip_password_change_notification
|
187
222
|
end
|
188
223
|
end
|
189
224
|
|
@@ -16,6 +16,9 @@ module Devise
|
|
16
16
|
success!(resource)
|
17
17
|
end
|
18
18
|
|
19
|
+
# In paranoid mode, hash the password even when a resource doesn't exist for the given authentication key.
|
20
|
+
# This is necessary to prevent enumeration attacks - e.g. the request is faster when a resource doesn't
|
21
|
+
# exist in the database if the password hashing algorithm is not called.
|
19
22
|
mapping.to.new.password = password if !hashed && Devise.paranoid
|
20
23
|
unless resource
|
21
24
|
Devise.paranoid ? fail(:invalid) : fail(:not_found_in_database)
|
@@ -139,7 +139,7 @@ module Devise
|
|
139
139
|
|
140
140
|
status, headers, response = Devise.warden_config[:failure_app].call(env).to_a
|
141
141
|
@controller.response.headers.merge!(headers)
|
142
|
-
@controller.response.content_type = headers["Content-Type"] unless Rails
|
142
|
+
@controller.response.content_type = headers["Content-Type"] unless Rails::VERSION::MAJOR >= 5
|
143
143
|
@controller.status = status
|
144
144
|
@controller.response.body = response.body
|
145
145
|
nil # causes process return @response
|
data/lib/devise/version.rb
CHANGED
@@ -82,8 +82,8 @@ RUBY
|
|
82
82
|
postgresql?
|
83
83
|
end
|
84
84
|
|
85
|
-
def
|
86
|
-
Rails
|
85
|
+
def rails5_and_up?
|
86
|
+
Rails::VERSION::MAJOR >= 5
|
87
87
|
end
|
88
88
|
|
89
89
|
def postgresql?
|
@@ -92,13 +92,13 @@ RUBY
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def migration_version
|
95
|
-
if
|
95
|
+
if rails5_and_up?
|
96
96
|
"[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
100
|
def primary_key_type
|
101
|
-
primary_key_string if
|
101
|
+
primary_key_string if rails5_and_up?
|
102
102
|
end
|
103
103
|
|
104
104
|
def primary_key_string
|
@@ -18,7 +18,7 @@ module Devise
|
|
18
18
|
|
19
19
|
This will create a controller class at app/controllers/users/sessions_controller.rb like this:
|
20
20
|
|
21
|
-
class Users::
|
21
|
+
class Users::SessionsController < Devise::SessionsController
|
22
22
|
content...
|
23
23
|
end
|
24
24
|
DESC
|
@@ -9,7 +9,7 @@ Devise.setup do |config|
|
|
9
9
|
# Devise will use the `secret_key_base` as its `secret_key`
|
10
10
|
# by default. You can change it below and use your own secret key.
|
11
11
|
# config.secret_key = '<%= SecureRandom.hex(64) %>'
|
12
|
-
|
12
|
+
|
13
13
|
# ==> Controller configuration
|
14
14
|
# Configure the parent class to the devise controllers.
|
15
15
|
# config.parent_controller = 'DeviseController'
|
@@ -126,8 +126,11 @@ Devise.setup do |config|
|
|
126
126
|
# A period that the user is allowed to access the website even without
|
127
127
|
# confirming their account. For instance, if set to 2.days, the user will be
|
128
128
|
# able to access the website for two days without confirming their account,
|
129
|
-
# access will be blocked just in the third day.
|
130
|
-
# the user
|
129
|
+
# access will be blocked just in the third day.
|
130
|
+
# You can also set it to nil, which will allow the user to access the website
|
131
|
+
# without confirming their account.
|
132
|
+
# Default is 0.days, meaning the user cannot access the website without
|
133
|
+
# confirming their account.
|
131
134
|
# config.allow_unconfirmed_access_for = 2.days
|
132
135
|
|
133
136
|
# A period that the user is allowed to confirm their account before their
|
@@ -287,4 +290,10 @@ Devise.setup do |config|
|
|
287
290
|
# ActiveSupport.on_load(:devise_failure_app) do
|
288
291
|
# include Turbolinks::Controller
|
289
292
|
# end
|
293
|
+
|
294
|
+
# ==> Configuration for :registerable
|
295
|
+
|
296
|
+
# When set to false, does not sign a user in automatically after their password is
|
297
|
+
# changed. Defaults to true, so a user is signed in automatically after changing a password.
|
298
|
+
# config.sign_in_after_change_password = true
|
290
299
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- José Valim
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: warden
|
@@ -93,18 +93,9 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
-
- ".gitignore"
|
97
|
-
- ".travis.yml"
|
98
|
-
- ".yardopts"
|
99
96
|
- CHANGELOG.md
|
100
|
-
- CODE_OF_CONDUCT.md
|
101
|
-
- CONTRIBUTING.md
|
102
|
-
- Gemfile
|
103
|
-
- Gemfile.lock
|
104
|
-
- ISSUE_TEMPLATE.md
|
105
97
|
- MIT-LICENSE
|
106
98
|
- README.md
|
107
|
-
- Rakefile
|
108
99
|
- app/controllers/devise/confirmations_controller.rb
|
109
100
|
- app/controllers/devise/omniauth_callbacks_controller.rb
|
110
101
|
- app/controllers/devise/passwords_controller.rb
|
@@ -125,21 +116,10 @@ files:
|
|
125
116
|
- app/views/devise/registrations/edit.html.erb
|
126
117
|
- app/views/devise/registrations/new.html.erb
|
127
118
|
- app/views/devise/sessions/new.html.erb
|
119
|
+
- app/views/devise/shared/_error_messages.html.erb
|
128
120
|
- app/views/devise/shared/_links.html.erb
|
129
121
|
- app/views/devise/unlocks/new.html.erb
|
130
|
-
- bin/test
|
131
122
|
- config/locales/en.yml
|
132
|
-
- devise.gemspec
|
133
|
-
- devise.png
|
134
|
-
- gemfiles/Gemfile.rails-4.1-stable
|
135
|
-
- gemfiles/Gemfile.rails-4.1-stable.lock
|
136
|
-
- gemfiles/Gemfile.rails-4.2-stable
|
137
|
-
- gemfiles/Gemfile.rails-4.2-stable.lock
|
138
|
-
- gemfiles/Gemfile.rails-5.0-stable
|
139
|
-
- gemfiles/Gemfile.rails-5.0-stable.lock
|
140
|
-
- gemfiles/Gemfile.rails-5.2-rc1
|
141
|
-
- gemfiles/Gemfile.rails-5.2-rc1.lock
|
142
|
-
- guides/bug_report_templates/integration_test.rb
|
143
123
|
- lib/devise.rb
|
144
124
|
- lib/devise/controllers/helpers.rb
|
145
125
|
- lib/devise/controllers/rememberable.rb
|
@@ -224,146 +204,6 @@ files:
|
|
224
204
|
- lib/generators/templates/simple_form_for/registrations/new.html.erb
|
225
205
|
- lib/generators/templates/simple_form_for/sessions/new.html.erb
|
226
206
|
- lib/generators/templates/simple_form_for/unlocks/new.html.erb
|
227
|
-
- test/controllers/custom_registrations_controller_test.rb
|
228
|
-
- test/controllers/custom_strategy_test.rb
|
229
|
-
- test/controllers/helper_methods_test.rb
|
230
|
-
- test/controllers/helpers_test.rb
|
231
|
-
- test/controllers/inherited_controller_i18n_messages_test.rb
|
232
|
-
- test/controllers/internal_helpers_test.rb
|
233
|
-
- test/controllers/load_hooks_controller_test.rb
|
234
|
-
- test/controllers/passwords_controller_test.rb
|
235
|
-
- test/controllers/sessions_controller_test.rb
|
236
|
-
- test/controllers/url_helpers_test.rb
|
237
|
-
- test/delegator_test.rb
|
238
|
-
- test/devise_test.rb
|
239
|
-
- test/failure_app_test.rb
|
240
|
-
- test/generators/active_record_generator_test.rb
|
241
|
-
- test/generators/controllers_generator_test.rb
|
242
|
-
- test/generators/devise_generator_test.rb
|
243
|
-
- test/generators/install_generator_test.rb
|
244
|
-
- test/generators/mongoid_generator_test.rb
|
245
|
-
- test/generators/views_generator_test.rb
|
246
|
-
- test/helpers/devise_helper_test.rb
|
247
|
-
- test/integration/authenticatable_test.rb
|
248
|
-
- test/integration/confirmable_test.rb
|
249
|
-
- test/integration/database_authenticatable_test.rb
|
250
|
-
- test/integration/http_authenticatable_test.rb
|
251
|
-
- test/integration/lockable_test.rb
|
252
|
-
- test/integration/mounted_engine_test.rb
|
253
|
-
- test/integration/omniauthable_test.rb
|
254
|
-
- test/integration/recoverable_test.rb
|
255
|
-
- test/integration/registerable_test.rb
|
256
|
-
- test/integration/rememberable_test.rb
|
257
|
-
- test/integration/timeoutable_test.rb
|
258
|
-
- test/integration/trackable_test.rb
|
259
|
-
- test/mailers/confirmation_instructions_test.rb
|
260
|
-
- test/mailers/email_changed_test.rb
|
261
|
-
- test/mailers/mailer_test.rb
|
262
|
-
- test/mailers/reset_password_instructions_test.rb
|
263
|
-
- test/mailers/unlock_instructions_test.rb
|
264
|
-
- test/mapping_test.rb
|
265
|
-
- test/models/authenticatable_test.rb
|
266
|
-
- test/models/confirmable_test.rb
|
267
|
-
- test/models/database_authenticatable_test.rb
|
268
|
-
- test/models/lockable_test.rb
|
269
|
-
- test/models/omniauthable_test.rb
|
270
|
-
- test/models/recoverable_test.rb
|
271
|
-
- test/models/registerable_test.rb
|
272
|
-
- test/models/rememberable_test.rb
|
273
|
-
- test/models/serializable_test.rb
|
274
|
-
- test/models/timeoutable_test.rb
|
275
|
-
- test/models/trackable_test.rb
|
276
|
-
- test/models/validatable_test.rb
|
277
|
-
- test/models_test.rb
|
278
|
-
- test/omniauth/config_test.rb
|
279
|
-
- test/omniauth/url_helpers_test.rb
|
280
|
-
- test/orm/active_record.rb
|
281
|
-
- test/orm/mongoid.rb
|
282
|
-
- test/parameter_sanitizer_test.rb
|
283
|
-
- test/rails_app/Rakefile
|
284
|
-
- test/rails_app/app/active_record/admin.rb
|
285
|
-
- test/rails_app/app/active_record/shim.rb
|
286
|
-
- test/rails_app/app/active_record/user.rb
|
287
|
-
- test/rails_app/app/active_record/user_on_engine.rb
|
288
|
-
- test/rails_app/app/active_record/user_on_main_app.rb
|
289
|
-
- test/rails_app/app/active_record/user_with_validations.rb
|
290
|
-
- test/rails_app/app/active_record/user_without_email.rb
|
291
|
-
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
292
|
-
- test/rails_app/app/controllers/admins_controller.rb
|
293
|
-
- test/rails_app/app/controllers/application_controller.rb
|
294
|
-
- test/rails_app/app/controllers/application_with_fake_engine.rb
|
295
|
-
- test/rails_app/app/controllers/custom/registrations_controller.rb
|
296
|
-
- test/rails_app/app/controllers/home_controller.rb
|
297
|
-
- test/rails_app/app/controllers/publisher/registrations_controller.rb
|
298
|
-
- test/rails_app/app/controllers/publisher/sessions_controller.rb
|
299
|
-
- test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
|
300
|
-
- test/rails_app/app/controllers/users_controller.rb
|
301
|
-
- test/rails_app/app/helpers/application_helper.rb
|
302
|
-
- test/rails_app/app/mailers/users/from_proc_mailer.rb
|
303
|
-
- test/rails_app/app/mailers/users/mailer.rb
|
304
|
-
- test/rails_app/app/mailers/users/reply_to_mailer.rb
|
305
|
-
- test/rails_app/app/mongoid/admin.rb
|
306
|
-
- test/rails_app/app/mongoid/shim.rb
|
307
|
-
- test/rails_app/app/mongoid/user.rb
|
308
|
-
- test/rails_app/app/mongoid/user_on_engine.rb
|
309
|
-
- test/rails_app/app/mongoid/user_on_main_app.rb
|
310
|
-
- test/rails_app/app/mongoid/user_with_validations.rb
|
311
|
-
- test/rails_app/app/mongoid/user_without_email.rb
|
312
|
-
- test/rails_app/app/views/admins/index.html.erb
|
313
|
-
- test/rails_app/app/views/admins/sessions/new.html.erb
|
314
|
-
- test/rails_app/app/views/home/admin_dashboard.html.erb
|
315
|
-
- test/rails_app/app/views/home/index.html.erb
|
316
|
-
- test/rails_app/app/views/home/join.html.erb
|
317
|
-
- test/rails_app/app/views/home/private.html.erb
|
318
|
-
- test/rails_app/app/views/home/user_dashboard.html.erb
|
319
|
-
- test/rails_app/app/views/layouts/application.html.erb
|
320
|
-
- test/rails_app/app/views/users/edit_form.html.erb
|
321
|
-
- test/rails_app/app/views/users/index.html.erb
|
322
|
-
- test/rails_app/app/views/users/mailer/confirmation_instructions.erb
|
323
|
-
- test/rails_app/app/views/users/sessions/new.html.erb
|
324
|
-
- test/rails_app/bin/bundle
|
325
|
-
- test/rails_app/bin/rails
|
326
|
-
- test/rails_app/bin/rake
|
327
|
-
- test/rails_app/config.ru
|
328
|
-
- test/rails_app/config/application.rb
|
329
|
-
- test/rails_app/config/boot.rb
|
330
|
-
- test/rails_app/config/database.yml
|
331
|
-
- test/rails_app/config/environment.rb
|
332
|
-
- test/rails_app/config/environments/development.rb
|
333
|
-
- test/rails_app/config/environments/production.rb
|
334
|
-
- test/rails_app/config/environments/test.rb
|
335
|
-
- test/rails_app/config/initializers/backtrace_silencers.rb
|
336
|
-
- test/rails_app/config/initializers/devise.rb
|
337
|
-
- test/rails_app/config/initializers/inflections.rb
|
338
|
-
- test/rails_app/config/initializers/secret_token.rb
|
339
|
-
- test/rails_app/config/initializers/session_store.rb
|
340
|
-
- test/rails_app/config/routes.rb
|
341
|
-
- test/rails_app/db/migrate/20100401102949_create_tables.rb
|
342
|
-
- test/rails_app/db/schema.rb
|
343
|
-
- test/rails_app/lib/lazy_load_test_module.rb
|
344
|
-
- test/rails_app/lib/shared_admin.rb
|
345
|
-
- test/rails_app/lib/shared_user.rb
|
346
|
-
- test/rails_app/lib/shared_user_without_email.rb
|
347
|
-
- test/rails_app/lib/shared_user_without_omniauth.rb
|
348
|
-
- test/rails_app/public/404.html
|
349
|
-
- test/rails_app/public/422.html
|
350
|
-
- test/rails_app/public/500.html
|
351
|
-
- test/rails_app/public/favicon.ico
|
352
|
-
- test/rails_test.rb
|
353
|
-
- test/routes_test.rb
|
354
|
-
- test/secret_key_finder_test.rb
|
355
|
-
- test/support/action_controller/record_identifier.rb
|
356
|
-
- test/support/assertions.rb
|
357
|
-
- test/support/helpers.rb
|
358
|
-
- test/support/http_method_compatibility.rb
|
359
|
-
- test/support/integration.rb
|
360
|
-
- test/support/locale/en.yml
|
361
|
-
- test/support/mongoid.yml
|
362
|
-
- test/support/webrat/integrations/rails.rb
|
363
|
-
- test/test/controller_helpers_test.rb
|
364
|
-
- test/test/integration_helpers_test.rb
|
365
|
-
- test/test_helper.rb
|
366
|
-
- test/test_models.rb
|
367
207
|
homepage: https://github.com/plataformatec/devise
|
368
208
|
licenses:
|
369
209
|
- MIT
|
@@ -384,148 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
384
224
|
version: '0'
|
385
225
|
requirements: []
|
386
226
|
rubyforge_project:
|
387
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.6.13
|
388
228
|
signing_key:
|
389
229
|
specification_version: 4
|
390
230
|
summary: Flexible authentication solution for Rails with Warden
|
391
|
-
test_files:
|
392
|
-
- test/controllers/custom_registrations_controller_test.rb
|
393
|
-
- test/controllers/custom_strategy_test.rb
|
394
|
-
- test/controllers/helper_methods_test.rb
|
395
|
-
- test/controllers/helpers_test.rb
|
396
|
-
- test/controllers/inherited_controller_i18n_messages_test.rb
|
397
|
-
- test/controllers/internal_helpers_test.rb
|
398
|
-
- test/controllers/load_hooks_controller_test.rb
|
399
|
-
- test/controllers/passwords_controller_test.rb
|
400
|
-
- test/controllers/sessions_controller_test.rb
|
401
|
-
- test/controllers/url_helpers_test.rb
|
402
|
-
- test/delegator_test.rb
|
403
|
-
- test/devise_test.rb
|
404
|
-
- test/failure_app_test.rb
|
405
|
-
- test/generators/active_record_generator_test.rb
|
406
|
-
- test/generators/controllers_generator_test.rb
|
407
|
-
- test/generators/devise_generator_test.rb
|
408
|
-
- test/generators/install_generator_test.rb
|
409
|
-
- test/generators/mongoid_generator_test.rb
|
410
|
-
- test/generators/views_generator_test.rb
|
411
|
-
- test/helpers/devise_helper_test.rb
|
412
|
-
- test/integration/authenticatable_test.rb
|
413
|
-
- test/integration/confirmable_test.rb
|
414
|
-
- test/integration/database_authenticatable_test.rb
|
415
|
-
- test/integration/http_authenticatable_test.rb
|
416
|
-
- test/integration/lockable_test.rb
|
417
|
-
- test/integration/mounted_engine_test.rb
|
418
|
-
- test/integration/omniauthable_test.rb
|
419
|
-
- test/integration/recoverable_test.rb
|
420
|
-
- test/integration/registerable_test.rb
|
421
|
-
- test/integration/rememberable_test.rb
|
422
|
-
- test/integration/timeoutable_test.rb
|
423
|
-
- test/integration/trackable_test.rb
|
424
|
-
- test/mailers/confirmation_instructions_test.rb
|
425
|
-
- test/mailers/email_changed_test.rb
|
426
|
-
- test/mailers/mailer_test.rb
|
427
|
-
- test/mailers/reset_password_instructions_test.rb
|
428
|
-
- test/mailers/unlock_instructions_test.rb
|
429
|
-
- test/mapping_test.rb
|
430
|
-
- test/models/authenticatable_test.rb
|
431
|
-
- test/models/confirmable_test.rb
|
432
|
-
- test/models/database_authenticatable_test.rb
|
433
|
-
- test/models/lockable_test.rb
|
434
|
-
- test/models/omniauthable_test.rb
|
435
|
-
- test/models/recoverable_test.rb
|
436
|
-
- test/models/registerable_test.rb
|
437
|
-
- test/models/rememberable_test.rb
|
438
|
-
- test/models/serializable_test.rb
|
439
|
-
- test/models/timeoutable_test.rb
|
440
|
-
- test/models/trackable_test.rb
|
441
|
-
- test/models/validatable_test.rb
|
442
|
-
- test/models_test.rb
|
443
|
-
- test/omniauth/config_test.rb
|
444
|
-
- test/omniauth/url_helpers_test.rb
|
445
|
-
- test/orm/active_record.rb
|
446
|
-
- test/orm/mongoid.rb
|
447
|
-
- test/parameter_sanitizer_test.rb
|
448
|
-
- test/rails_app/Rakefile
|
449
|
-
- test/rails_app/app/active_record/admin.rb
|
450
|
-
- test/rails_app/app/active_record/shim.rb
|
451
|
-
- test/rails_app/app/active_record/user.rb
|
452
|
-
- test/rails_app/app/active_record/user_on_engine.rb
|
453
|
-
- test/rails_app/app/active_record/user_on_main_app.rb
|
454
|
-
- test/rails_app/app/active_record/user_with_validations.rb
|
455
|
-
- test/rails_app/app/active_record/user_without_email.rb
|
456
|
-
- test/rails_app/app/controllers/admins/sessions_controller.rb
|
457
|
-
- test/rails_app/app/controllers/admins_controller.rb
|
458
|
-
- test/rails_app/app/controllers/application_controller.rb
|
459
|
-
- test/rails_app/app/controllers/application_with_fake_engine.rb
|
460
|
-
- test/rails_app/app/controllers/custom/registrations_controller.rb
|
461
|
-
- test/rails_app/app/controllers/home_controller.rb
|
462
|
-
- test/rails_app/app/controllers/publisher/registrations_controller.rb
|
463
|
-
- test/rails_app/app/controllers/publisher/sessions_controller.rb
|
464
|
-
- test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
|
465
|
-
- test/rails_app/app/controllers/users_controller.rb
|
466
|
-
- test/rails_app/app/helpers/application_helper.rb
|
467
|
-
- test/rails_app/app/mailers/users/from_proc_mailer.rb
|
468
|
-
- test/rails_app/app/mailers/users/mailer.rb
|
469
|
-
- test/rails_app/app/mailers/users/reply_to_mailer.rb
|
470
|
-
- test/rails_app/app/mongoid/admin.rb
|
471
|
-
- test/rails_app/app/mongoid/shim.rb
|
472
|
-
- test/rails_app/app/mongoid/user.rb
|
473
|
-
- test/rails_app/app/mongoid/user_on_engine.rb
|
474
|
-
- test/rails_app/app/mongoid/user_on_main_app.rb
|
475
|
-
- test/rails_app/app/mongoid/user_with_validations.rb
|
476
|
-
- test/rails_app/app/mongoid/user_without_email.rb
|
477
|
-
- test/rails_app/app/views/admins/index.html.erb
|
478
|
-
- test/rails_app/app/views/admins/sessions/new.html.erb
|
479
|
-
- test/rails_app/app/views/home/admin_dashboard.html.erb
|
480
|
-
- test/rails_app/app/views/home/index.html.erb
|
481
|
-
- test/rails_app/app/views/home/join.html.erb
|
482
|
-
- test/rails_app/app/views/home/private.html.erb
|
483
|
-
- test/rails_app/app/views/home/user_dashboard.html.erb
|
484
|
-
- test/rails_app/app/views/layouts/application.html.erb
|
485
|
-
- test/rails_app/app/views/users/edit_form.html.erb
|
486
|
-
- test/rails_app/app/views/users/index.html.erb
|
487
|
-
- test/rails_app/app/views/users/mailer/confirmation_instructions.erb
|
488
|
-
- test/rails_app/app/views/users/sessions/new.html.erb
|
489
|
-
- test/rails_app/bin/bundle
|
490
|
-
- test/rails_app/bin/rails
|
491
|
-
- test/rails_app/bin/rake
|
492
|
-
- test/rails_app/config.ru
|
493
|
-
- test/rails_app/config/application.rb
|
494
|
-
- test/rails_app/config/boot.rb
|
495
|
-
- test/rails_app/config/database.yml
|
496
|
-
- test/rails_app/config/environment.rb
|
497
|
-
- test/rails_app/config/environments/development.rb
|
498
|
-
- test/rails_app/config/environments/production.rb
|
499
|
-
- test/rails_app/config/environments/test.rb
|
500
|
-
- test/rails_app/config/initializers/backtrace_silencers.rb
|
501
|
-
- test/rails_app/config/initializers/devise.rb
|
502
|
-
- test/rails_app/config/initializers/inflections.rb
|
503
|
-
- test/rails_app/config/initializers/secret_token.rb
|
504
|
-
- test/rails_app/config/initializers/session_store.rb
|
505
|
-
- test/rails_app/config/routes.rb
|
506
|
-
- test/rails_app/db/migrate/20100401102949_create_tables.rb
|
507
|
-
- test/rails_app/db/schema.rb
|
508
|
-
- test/rails_app/lib/lazy_load_test_module.rb
|
509
|
-
- test/rails_app/lib/shared_admin.rb
|
510
|
-
- test/rails_app/lib/shared_user.rb
|
511
|
-
- test/rails_app/lib/shared_user_without_email.rb
|
512
|
-
- test/rails_app/lib/shared_user_without_omniauth.rb
|
513
|
-
- test/rails_app/public/404.html
|
514
|
-
- test/rails_app/public/422.html
|
515
|
-
- test/rails_app/public/500.html
|
516
|
-
- test/rails_app/public/favicon.ico
|
517
|
-
- test/rails_test.rb
|
518
|
-
- test/routes_test.rb
|
519
|
-
- test/secret_key_finder_test.rb
|
520
|
-
- test/support/action_controller/record_identifier.rb
|
521
|
-
- test/support/assertions.rb
|
522
|
-
- test/support/helpers.rb
|
523
|
-
- test/support/http_method_compatibility.rb
|
524
|
-
- test/support/integration.rb
|
525
|
-
- test/support/locale/en.yml
|
526
|
-
- test/support/mongoid.yml
|
527
|
-
- test/support/webrat/integrations/rails.rb
|
528
|
-
- test/test/controller_helpers_test.rb
|
529
|
-
- test/test/integration_helpers_test.rb
|
530
|
-
- test/test_helper.rb
|
531
|
-
- test/test_models.rb
|
231
|
+
test_files: []
|