devise 2.1.2 → 3.5.10
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 +7 -0
- data/.travis.yml +39 -10
- data/.yardopts +9 -0
- data/{CHANGELOG.rdoc → CHANGELOG.md} +445 -112
- data/CODE_OF_CONDUCT.md +22 -0
- data/CONTRIBUTING.md +16 -0
- data/Gemfile +10 -15
- data/Gemfile.lock +151 -129
- data/MIT-LICENSE +1 -1
- data/README.md +256 -96
- data/Rakefile +4 -2
- data/app/controllers/devise/confirmations_controller.rb +15 -7
- data/app/controllers/devise/omniauth_callbacks_controller.rb +6 -2
- data/app/controllers/devise/passwords_controller.rb +33 -9
- data/app/controllers/devise/registrations_controller.rb +66 -26
- data/app/controllers/devise/sessions_controller.rb +52 -21
- data/app/controllers/devise/unlocks_controller.rb +11 -6
- data/app/controllers/devise_controller.rb +65 -58
- data/app/helpers/devise_helper.rb +2 -2
- data/app/mailers/devise/mailer.rb +19 -10
- data/app/views/devise/confirmations/new.html.erb +8 -4
- data/app/views/devise/mailer/confirmation_instructions.html.erb +2 -2
- data/app/views/devise/mailer/password_change.html.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +2 -2
- data/app/views/devise/mailer/unlock_instructions.html.erb +2 -2
- data/app/views/devise/passwords/edit.html.erb +15 -6
- data/app/views/devise/passwords/new.html.erb +8 -4
- data/app/views/devise/registrations/edit.html.erb +29 -15
- data/app/views/devise/registrations/new.html.erb +19 -8
- data/app/views/devise/sessions/new.html.erb +17 -8
- data/app/views/devise/shared/{_links.erb → _links.html.erb} +4 -4
- data/app/views/devise/unlocks/new.html.erb +8 -4
- data/config/locales/en.yml +51 -47
- data/devise.gemspec +8 -6
- data/devise.png +0 -0
- data/gemfiles/Gemfile.rails-3.2-stable +29 -0
- data/gemfiles/Gemfile.rails-3.2-stable.lock +172 -0
- data/gemfiles/Gemfile.rails-4.0-stable +30 -0
- data/gemfiles/Gemfile.rails-4.0-stable.lock +166 -0
- data/gemfiles/Gemfile.rails-4.1-stable +30 -0
- data/gemfiles/Gemfile.rails-4.1-stable.lock +171 -0
- data/gemfiles/Gemfile.rails-4.2-stable +30 -0
- data/gemfiles/Gemfile.rails-4.2-stable.lock +193 -0
- data/lib/devise/controllers/helpers.rb +126 -108
- data/lib/devise/controllers/rememberable.rb +19 -17
- data/lib/devise/controllers/scoped_views.rb +1 -1
- data/lib/devise/controllers/sign_in_out.rb +96 -0
- data/lib/devise/controllers/store_location.rb +58 -0
- data/lib/devise/controllers/url_helpers.rb +7 -7
- data/lib/devise/encryptor.rb +22 -0
- data/lib/devise/failure_app.rb +85 -25
- data/lib/devise/hooks/activatable.rb +5 -6
- data/lib/devise/hooks/csrf_cleaner.rb +7 -0
- data/lib/devise/hooks/forgetable.rb +1 -1
- data/lib/devise/hooks/lockable.rb +2 -2
- data/lib/devise/hooks/proxy.rb +21 -0
- data/lib/devise/hooks/rememberable.rb +5 -4
- data/lib/devise/hooks/timeoutable.rb +16 -8
- data/lib/devise/hooks/trackable.rb +1 -1
- data/lib/devise/mailers/helpers.rb +27 -23
- data/lib/devise/mapping.rb +11 -7
- data/lib/devise/models/authenticatable.rb +82 -66
- data/lib/devise/models/confirmable.rb +142 -55
- data/lib/devise/models/database_authenticatable.rb +59 -15
- data/lib/devise/models/lockable.rb +41 -30
- data/lib/devise/models/omniauthable.rb +3 -3
- data/lib/devise/models/recoverable.rb +56 -41
- data/lib/devise/models/rememberable.rb +65 -27
- data/lib/devise/models/timeoutable.rb +2 -8
- data/lib/devise/models/trackable.rb +6 -4
- data/lib/devise/models/validatable.rb +9 -9
- data/lib/devise/models.rb +4 -13
- data/lib/devise/modules.rb +10 -11
- data/lib/devise/omniauth/url_helpers.rb +2 -2
- data/lib/devise/orm/active_record.rb +1 -1
- data/lib/devise/orm/mongoid.rb +1 -1
- data/lib/devise/{param_filter.rb → parameter_filter.rb} +10 -11
- data/lib/devise/parameter_sanitizer.rb +99 -0
- data/lib/devise/rails/routes.rb +173 -115
- data/lib/devise/rails/warden_compat.rb +10 -31
- data/lib/devise/rails.rb +14 -12
- data/lib/devise/strategies/authenticatable.rb +26 -26
- data/lib/devise/strategies/base.rb +1 -1
- data/lib/devise/strategies/database_authenticatable.rb +8 -4
- data/lib/devise/strategies/rememberable.rb +15 -5
- data/lib/devise/test_helpers.rb +7 -5
- data/lib/devise/time_inflector.rb +14 -0
- data/lib/devise/token_generator.rb +70 -0
- data/lib/devise/version.rb +1 -1
- data/lib/devise.rb +110 -52
- data/lib/generators/active_record/devise_generator.rb +34 -18
- data/lib/generators/active_record/templates/migration.rb +5 -6
- data/lib/generators/active_record/templates/migration_existing.rb +5 -6
- data/lib/generators/devise/controllers_generator.rb +44 -0
- data/lib/generators/devise/devise_generator.rb +5 -3
- data/lib/generators/devise/install_generator.rb +5 -0
- data/lib/generators/devise/orm_helpers.rb +25 -6
- data/lib/generators/devise/views_generator.rb +52 -22
- data/lib/generators/mongoid/devise_generator.rb +21 -26
- data/lib/generators/templates/README +9 -5
- data/lib/generators/templates/controllers/README +14 -0
- data/lib/generators/templates/controllers/confirmations_controller.rb +28 -0
- data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +28 -0
- data/lib/generators/templates/controllers/passwords_controller.rb +32 -0
- data/lib/generators/templates/controllers/registrations_controller.rb +60 -0
- data/lib/generators/templates/controllers/sessions_controller.rb +25 -0
- data/lib/generators/templates/controllers/unlocks_controller.rb +28 -0
- data/lib/generators/templates/devise.rb +80 -43
- data/lib/generators/templates/markerb/confirmation_instructions.markerb +2 -2
- data/lib/generators/templates/markerb/password_change.markerb +3 -0
- data/lib/generators/templates/markerb/reset_password_instructions.markerb +1 -1
- data/lib/generators/templates/markerb/unlock_instructions.markerb +2 -2
- data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +3 -2
- data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +4 -4
- data/lib/generators/templates/simple_form_for/passwords/new.html.erb +2 -2
- data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -6
- data/lib/generators/templates/simple_form_for/registrations/new.html.erb +4 -4
- data/lib/generators/templates/simple_form_for/sessions/new.html.erb +6 -6
- data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +3 -2
- data/script/cached-bundle +49 -0
- data/script/s3-put +71 -0
- data/test/controllers/custom_registrations_controller_test.rb +40 -0
- data/test/controllers/helper_methods_test.rb +21 -0
- data/test/controllers/helpers_test.rb +95 -32
- data/test/controllers/inherited_controller_i18n_messages_test.rb +51 -0
- data/test/controllers/internal_helpers_test.rb +39 -14
- data/test/controllers/load_hooks_controller_test.rb +19 -0
- data/test/controllers/passwords_controller_test.rb +31 -0
- data/test/controllers/sessions_controller_test.rb +66 -6
- data/test/controllers/url_helpers_test.rb +10 -4
- data/test/delegator_test.rb +1 -1
- data/test/devise_test.rb +45 -10
- data/test/failure_app_test.rb +121 -27
- data/test/generators/active_record_generator_test.rb +48 -8
- data/test/generators/controllers_generator_test.rb +48 -0
- data/test/generators/devise_generator_test.rb +2 -2
- data/test/generators/mongoid_generator_test.rb +3 -3
- data/test/generators/views_generator_test.rb +54 -3
- data/test/helpers/devise_helper_test.rb +18 -20
- data/test/integration/authenticatable_test.rb +161 -65
- data/test/integration/confirmable_test.rb +146 -77
- data/test/integration/database_authenticatable_test.rb +43 -30
- data/test/integration/http_authenticatable_test.rb +30 -22
- data/test/integration/lockable_test.rb +64 -49
- data/test/integration/omniauthable_test.rb +17 -15
- data/test/integration/recoverable_test.rb +111 -70
- data/test/integration/registerable_test.rb +114 -79
- data/test/integration/rememberable_test.rb +87 -31
- data/test/integration/timeoutable_test.rb +77 -33
- data/test/integration/trackable_test.rb +5 -5
- data/test/mailers/confirmation_instructions_test.rb +28 -8
- data/test/mailers/reset_password_instructions_test.rb +21 -8
- data/test/mailers/unlock_instructions_test.rb +20 -6
- data/test/mapping_test.rb +12 -5
- data/test/models/authenticatable_test.rb +17 -1
- data/test/models/confirmable_test.rb +216 -62
- data/test/models/database_authenticatable_test.rb +129 -49
- data/test/models/lockable_test.rb +132 -45
- data/test/models/recoverable_test.rb +100 -54
- data/test/models/rememberable_test.rb +89 -94
- data/test/models/serializable_test.rb +12 -11
- data/test/models/timeoutable_test.rb +6 -1
- data/test/models/trackable_test.rb +28 -0
- data/test/models/validatable_test.rb +31 -21
- data/test/models_test.rb +22 -48
- data/test/omniauth/config_test.rb +4 -4
- data/test/omniauth/url_helpers_test.rb +7 -4
- data/test/orm/active_record.rb +1 -0
- data/test/orm/mongoid.rb +2 -3
- data/test/parameter_sanitizer_test.rb +81 -0
- data/test/rails_app/Rakefile +0 -4
- data/test/rails_app/app/active_record/shim.rb +1 -1
- data/test/rails_app/app/active_record/user_on_engine.rb +7 -0
- data/test/rails_app/app/active_record/user_on_main_app.rb +7 -0
- data/test/rails_app/app/active_record/user_without_email.rb +8 -0
- data/test/rails_app/app/controllers/admins/sessions_controller.rb +1 -1
- data/test/rails_app/app/controllers/admins_controller.rb +0 -5
- data/test/rails_app/app/controllers/application_controller.rb +6 -2
- data/test/rails_app/app/controllers/application_with_fake_engine.rb +30 -0
- data/test/rails_app/app/controllers/custom/registrations_controller.rb +31 -0
- data/test/rails_app/app/controllers/home_controller.rb +1 -1
- data/test/rails_app/app/controllers/publisher/registrations_controller.rb +1 -1
- data/test/rails_app/app/controllers/publisher/sessions_controller.rb +1 -1
- data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +4 -4
- data/test/rails_app/app/controllers/users_controller.rb +12 -4
- data/test/rails_app/app/mailers/users/from_proc_mailer.rb +3 -0
- data/test/rails_app/app/mailers/users/mailer.rb +1 -1
- data/test/rails_app/app/mailers/users/reply_to_mailer.rb +4 -0
- data/test/rails_app/app/mongoid/admin.rb +12 -10
- data/test/rails_app/app/mongoid/shim.rb +4 -5
- data/test/rails_app/app/mongoid/user.rb +19 -22
- data/test/rails_app/app/mongoid/user_on_engine.rb +39 -0
- data/test/rails_app/app/mongoid/user_on_main_app.rb +39 -0
- data/test/rails_app/app/mongoid/user_without_email.rb +33 -0
- data/test/rails_app/app/views/admins/sessions/new.html.erb +1 -1
- data/test/rails_app/app/views/home/admin_dashboard.html.erb +1 -1
- data/test/rails_app/app/views/home/index.html.erb +1 -1
- data/test/rails_app/app/views/home/join.html.erb +1 -1
- data/test/rails_app/app/views/home/user_dashboard.html.erb +1 -1
- data/test/rails_app/app/views/layouts/application.html.erb +1 -1
- data/test/rails_app/app/views/users/edit_form.html.erb +1 -0
- data/test/rails_app/bin/bundle +3 -0
- data/test/rails_app/bin/rails +4 -0
- data/test/rails_app/bin/rake +4 -0
- data/test/rails_app/config/application.rb +4 -5
- data/test/rails_app/config/boot.rb +9 -3
- data/test/rails_app/config/environment.rb +2 -2
- data/test/rails_app/config/environments/development.rb +19 -7
- data/test/rails_app/config/environments/production.rb +68 -17
- data/test/rails_app/config/environments/test.rb +24 -16
- data/test/rails_app/config/initializers/devise.rb +22 -20
- data/test/rails_app/config/initializers/secret_token.rb +8 -2
- data/test/rails_app/config/initializers/session_store.rb +1 -0
- data/test/rails_app/config/routes.rb +71 -46
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +9 -12
- data/test/rails_app/db/schema.rb +21 -18
- data/test/rails_app/lib/shared_admin.rb +7 -4
- data/test/rails_app/lib/shared_user.rb +6 -3
- data/test/rails_app/lib/shared_user_without_email.rb +26 -0
- data/test/rails_app/lib/shared_user_without_omniauth.rb +13 -0
- data/test/rails_test.rb +9 -0
- data/test/routes_test.rb +94 -78
- data/test/support/action_controller/record_identifier.rb +10 -0
- data/test/support/assertions.rb +2 -3
- data/test/support/helpers.rb +18 -32
- data/test/support/integration.rb +17 -16
- data/test/support/locale/en.yml +4 -0
- data/test/support/mongoid.yml +6 -0
- data/test/test_helper.rb +8 -1
- data/test/test_helpers_test.rb +64 -20
- data/test/test_models.rb +33 -0
- data/test/time_helpers.rb +137 -0
- metadata +172 -51
- data/app/views/devise/_links.erb +0 -3
- data/gemfiles/Gemfile.rails-3.1.x +0 -35
- data/gemfiles/Gemfile.rails-3.1.x.lock +0 -167
- data/lib/devise/models/token_authenticatable.rb +0 -77
- data/lib/devise/strategies/token_authenticatable.rb +0 -56
- data/test/indifferent_hash.rb +0 -33
- data/test/integration/token_authenticatable_test.rb +0 -161
- data/test/models/token_authenticatable_test.rb +0 -55
- data/test/rails_app/script/rails +0 -10
@@ -1,17 +1,26 @@
|
|
1
|
-
<h2>
|
1
|
+
<h2>Log in</h2>
|
2
2
|
|
3
|
-
<%= form_for(resource, :
|
4
|
-
<div
|
5
|
-
|
3
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
4
|
+
<div class="field">
|
5
|
+
<%= f.label :email %><br />
|
6
|
+
<%= f.email_field :email, autofocus: true %>
|
7
|
+
</div>
|
6
8
|
|
7
|
-
<div
|
8
|
-
|
9
|
+
<div class="field">
|
10
|
+
<%= f.label :password %><br />
|
11
|
+
<%= f.password_field :password, autocomplete: "off" %>
|
12
|
+
</div>
|
9
13
|
|
10
14
|
<% if devise_mapping.rememberable? -%>
|
11
|
-
<div
|
15
|
+
<div class="field">
|
16
|
+
<%= f.check_box :remember_me %>
|
17
|
+
<%= f.label :remember_me %>
|
18
|
+
</div>
|
12
19
|
<% end -%>
|
13
20
|
|
14
|
-
<div
|
21
|
+
<div class="actions">
|
22
|
+
<%= f.submit "Log in" %>
|
23
|
+
</div>
|
15
24
|
<% end %>
|
16
25
|
|
17
26
|
<%= render "devise/shared/links" %>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%- if controller_name != 'sessions' %>
|
2
|
-
<%= link_to "
|
2
|
+
<%= link_to "Log in", new_session_path(resource_name) %><br />
|
3
3
|
<% end -%>
|
4
4
|
|
5
5
|
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
6
|
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
|
7
7
|
<% end -%>
|
8
8
|
|
9
|
-
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
|
9
|
+
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
10
10
|
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
11
11
|
<% end -%>
|
12
12
|
|
@@ -20,6 +20,6 @@
|
|
20
20
|
|
21
21
|
<%- if devise_mapping.omniauthable? %>
|
22
22
|
<%- resource_class.omniauth_providers.each do |provider| %>
|
23
|
-
<%= link_to "Sign in with #{provider
|
23
|
+
<%= link_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider) %><br />
|
24
24
|
<% end -%>
|
25
|
-
<% end -%>
|
25
|
+
<% end -%>
|
@@ -1,12 +1,16 @@
|
|
1
1
|
<h2>Resend unlock instructions</h2>
|
2
2
|
|
3
|
-
<%= form_for(resource, :
|
3
|
+
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
|
4
4
|
<%= devise_error_messages! %>
|
5
5
|
|
6
|
-
<div
|
7
|
-
|
6
|
+
<div class="field">
|
7
|
+
<%= f.label :email %><br />
|
8
|
+
<%= f.email_field :email, autofocus: true %>
|
9
|
+
</div>
|
8
10
|
|
9
|
-
<div
|
11
|
+
<div class="actions">
|
12
|
+
<%= f.submit "Resend unlock instructions" %>
|
13
|
+
</div>
|
10
14
|
<% end %>
|
11
15
|
|
12
16
|
<%= render "devise/shared/links" %>
|
data/config/locales/en.yml
CHANGED
@@ -1,58 +1,62 @@
|
|
1
1
|
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
2
|
|
3
3
|
en:
|
4
|
+
devise:
|
5
|
+
confirmations:
|
6
|
+
confirmed: "Your email address has been successfully confirmed."
|
7
|
+
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
8
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address 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 %{authentication_keys} or password."
|
13
|
+
locked: "Your account is locked."
|
14
|
+
last_attempt: "You have one more attempt before your account is locked."
|
15
|
+
not_found_in_database: "Invalid %{authentication_keys} 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 email address 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
|
+
password_change:
|
27
|
+
subject: "Password Changed"
|
28
|
+
omniauth_callbacks:
|
29
|
+
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
30
|
+
success: "Successfully authenticated from %{kind} account."
|
31
|
+
passwords:
|
32
|
+
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."
|
33
|
+
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
34
|
+
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."
|
35
|
+
updated: "Your password has been changed successfully. You are now signed in."
|
36
|
+
updated_not_active: "Your password has been changed successfully."
|
37
|
+
registrations:
|
38
|
+
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
39
|
+
signed_up: "Welcome! You have signed up successfully."
|
40
|
+
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
41
|
+
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
42
|
+
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
43
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
44
|
+
updated: "Your account has been updated successfully."
|
45
|
+
sessions:
|
46
|
+
signed_in: "Signed in successfully."
|
47
|
+
signed_out: "Signed out successfully."
|
48
|
+
already_signed_out: "Signed out successfully."
|
49
|
+
unlocks:
|
50
|
+
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
51
|
+
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
52
|
+
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
4
53
|
errors:
|
5
54
|
messages:
|
55
|
+
already_confirmed: "was already confirmed, please try signing in"
|
56
|
+
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
6
57
|
expired: "has expired, please request a new one"
|
7
58
|
not_found: "not found"
|
8
|
-
already_confirmed: "was already confirmed, please try signing in"
|
9
59
|
not_locked: "was not locked"
|
10
60
|
not_saved:
|
11
61
|
one: "1 error prohibited this %{resource} from being saved:"
|
12
62
|
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
|
-
updated_not_active: 'Your password was changed successfully.'
|
31
|
-
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."
|
32
|
-
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."
|
33
|
-
confirmations:
|
34
|
-
send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
|
35
|
-
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.'
|
36
|
-
confirmed: 'Your account was successfully confirmed. You are now signed in.'
|
37
|
-
registrations:
|
38
|
-
signed_up: 'Welcome! You have signed up successfully.'
|
39
|
-
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.'
|
40
|
-
signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
|
41
|
-
signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
|
42
|
-
updated: 'You updated your account successfully.'
|
43
|
-
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."
|
44
|
-
destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
|
45
|
-
unlocks:
|
46
|
-
send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
|
47
|
-
unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
|
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
|
-
omniauth_callbacks:
|
50
|
-
success: 'Successfully authenticated from %{kind} account.'
|
51
|
-
failure: 'Could not authenticate you from %{kind} because "%{reason}".'
|
52
|
-
mailer:
|
53
|
-
confirmation_instructions:
|
54
|
-
subject: 'Confirmation instructions'
|
55
|
-
reset_password_instructions:
|
56
|
-
subject: 'Reset password instructions'
|
57
|
-
unlock_instructions:
|
58
|
-
subject: 'Unlock Instructions'
|
data/devise.gemspec
CHANGED
@@ -6,20 +6,22 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "devise"
|
7
7
|
s.version = Devise::VERSION.dup
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
+
s.licenses = ["MIT"]
|
9
10
|
s.summary = "Flexible authentication solution for Rails with Warden"
|
10
11
|
s.email = "contact@plataformatec.com.br"
|
11
|
-
s.homepage = "
|
12
|
+
s.homepage = "https://github.com/plataformatec/devise"
|
12
13
|
s.description = "Flexible authentication solution for Rails with Warden"
|
13
14
|
s.authors = ['José Valim', 'Carlos Antônio']
|
14
15
|
|
15
|
-
s.rubyforge_project = "devise"
|
16
|
-
|
17
16
|
s.files = `git ls-files`.split("\n")
|
18
17
|
s.test_files = `git ls-files -- test/*`.split("\n")
|
19
18
|
s.require_paths = ["lib"]
|
19
|
+
s.required_ruby_version = '>= 1.9.3'
|
20
20
|
|
21
|
-
s.add_dependency("warden", "~> 1.2.
|
21
|
+
s.add_dependency("warden", "~> 1.2.3")
|
22
22
|
s.add_dependency("orm_adapter", "~> 0.1")
|
23
|
-
s.add_dependency("bcrypt
|
24
|
-
s.add_dependency("
|
23
|
+
s.add_dependency("bcrypt", "~> 3.0")
|
24
|
+
s.add_dependency("thread_safe", "~> 0.1")
|
25
|
+
s.add_dependency("railties", ">= 3.2.6", "< 5")
|
26
|
+
s.add_dependency("responders")
|
25
27
|
end
|
data/devise.png
ADDED
Binary file
|
@@ -0,0 +1,29 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem "rails", github: 'rails/rails', branch: '3-2-stable'
|
6
|
+
gem "omniauth", "~> 1.2.0"
|
7
|
+
gem "omniauth-oauth2", "~> 1.1.0"
|
8
|
+
gem "rdoc"
|
9
|
+
|
10
|
+
group :test do
|
11
|
+
gem "omniauth-facebook"
|
12
|
+
gem "omniauth-openid", "~> 1.0.1"
|
13
|
+
gem "webrat", "0.7.3", require: false
|
14
|
+
gem "mocha", "~> 1.1", require: false
|
15
|
+
end
|
16
|
+
|
17
|
+
platforms :jruby do
|
18
|
+
gem "activerecord-jdbc-adapter"
|
19
|
+
gem "activerecord-jdbcsqlite3-adapter"
|
20
|
+
gem "jruby-openssl"
|
21
|
+
end
|
22
|
+
|
23
|
+
platforms :ruby do
|
24
|
+
gem "sqlite3"
|
25
|
+
end
|
26
|
+
|
27
|
+
group :mongoid do
|
28
|
+
gem "mongoid", "~> 3.0"
|
29
|
+
end
|
@@ -0,0 +1,172 @@
|
|
1
|
+
GIT
|
2
|
+
remote: git://github.com/rails/rails.git
|
3
|
+
revision: f85bbed4cdc1bdfd1e0dbd97bce9db81e44cbd11
|
4
|
+
branch: 3-2-stable
|
5
|
+
specs:
|
6
|
+
actionmailer (3.2.22.2)
|
7
|
+
actionpack (= 3.2.22.2)
|
8
|
+
mail (~> 2.5.4)
|
9
|
+
actionpack (3.2.22.2)
|
10
|
+
activemodel (= 3.2.22.2)
|
11
|
+
activesupport (= 3.2.22.2)
|
12
|
+
builder (~> 3.0.0)
|
13
|
+
erubis (~> 2.7.0)
|
14
|
+
journey (~> 1.0.4)
|
15
|
+
rack (~> 1.4.5)
|
16
|
+
rack-cache (~> 1.2)
|
17
|
+
rack-test (~> 0.6.1)
|
18
|
+
sprockets (~> 2.2.1)
|
19
|
+
activemodel (3.2.22.2)
|
20
|
+
activesupport (= 3.2.22.2)
|
21
|
+
builder (~> 3.0.0)
|
22
|
+
activerecord (3.2.22.2)
|
23
|
+
activemodel (= 3.2.22.2)
|
24
|
+
activesupport (= 3.2.22.2)
|
25
|
+
arel (~> 3.0.2)
|
26
|
+
tzinfo (~> 0.3.29)
|
27
|
+
activeresource (3.2.22.2)
|
28
|
+
activemodel (= 3.2.22.2)
|
29
|
+
activesupport (= 3.2.22.2)
|
30
|
+
activesupport (3.2.22.2)
|
31
|
+
i18n (~> 0.6, >= 0.6.4)
|
32
|
+
multi_json (~> 1.0)
|
33
|
+
rails (3.2.22.2)
|
34
|
+
actionmailer (= 3.2.22.2)
|
35
|
+
actionpack (= 3.2.22.2)
|
36
|
+
activerecord (= 3.2.22.2)
|
37
|
+
activeresource (= 3.2.22.2)
|
38
|
+
activesupport (= 3.2.22.2)
|
39
|
+
bundler (~> 1.0)
|
40
|
+
railties (= 3.2.22.2)
|
41
|
+
railties (3.2.22.2)
|
42
|
+
actionpack (= 3.2.22.2)
|
43
|
+
activesupport (= 3.2.22.2)
|
44
|
+
rack-ssl (~> 1.3.2)
|
45
|
+
rake (>= 0.8.7)
|
46
|
+
rdoc (~> 3.4)
|
47
|
+
thor (>= 0.14.6, < 2.0)
|
48
|
+
|
49
|
+
PATH
|
50
|
+
remote: ..
|
51
|
+
specs:
|
52
|
+
devise (3.5.8)
|
53
|
+
bcrypt (~> 3.0)
|
54
|
+
orm_adapter (~> 0.1)
|
55
|
+
railties (>= 3.2.6, < 5)
|
56
|
+
responders
|
57
|
+
thread_safe (~> 0.1)
|
58
|
+
warden (~> 1.2.3)
|
59
|
+
|
60
|
+
GEM
|
61
|
+
remote: https://rubygems.org/
|
62
|
+
specs:
|
63
|
+
arel (3.0.3)
|
64
|
+
bcrypt (3.1.11)
|
65
|
+
builder (3.0.4)
|
66
|
+
erubis (2.7.0)
|
67
|
+
faraday (0.9.2)
|
68
|
+
multipart-post (>= 1.2, < 3)
|
69
|
+
hashie (3.4.3)
|
70
|
+
hike (1.2.3)
|
71
|
+
i18n (0.7.0)
|
72
|
+
journey (1.0.4)
|
73
|
+
json (1.8.3)
|
74
|
+
jwt (1.5.4)
|
75
|
+
mail (2.5.4)
|
76
|
+
mime-types (~> 1.16)
|
77
|
+
treetop (~> 1.4.8)
|
78
|
+
metaclass (0.0.4)
|
79
|
+
mime-types (1.25.1)
|
80
|
+
mini_portile2 (2.0.0)
|
81
|
+
mocha (1.1.0)
|
82
|
+
metaclass (~> 0.0.1)
|
83
|
+
mongoid (3.1.7)
|
84
|
+
activemodel (~> 3.2)
|
85
|
+
moped (~> 1.4)
|
86
|
+
origin (~> 1.0)
|
87
|
+
tzinfo (~> 0.3.29)
|
88
|
+
moped (1.5.3)
|
89
|
+
multi_json (1.11.3)
|
90
|
+
multi_xml (0.5.5)
|
91
|
+
multipart-post (2.0.0)
|
92
|
+
nokogiri (1.6.7.2)
|
93
|
+
mini_portile2 (~> 2.0.0.rc2)
|
94
|
+
oauth2 (0.9.4)
|
95
|
+
faraday (>= 0.8, < 0.10)
|
96
|
+
jwt (~> 1.0)
|
97
|
+
multi_json (~> 1.3)
|
98
|
+
multi_xml (~> 0.5)
|
99
|
+
rack (~> 1.2)
|
100
|
+
omniauth (1.2.2)
|
101
|
+
hashie (>= 1.2, < 4)
|
102
|
+
rack (~> 1.0)
|
103
|
+
omniauth-facebook (1.6.0)
|
104
|
+
omniauth-oauth2 (~> 1.1)
|
105
|
+
omniauth-oauth2 (1.1.2)
|
106
|
+
faraday (>= 0.8, < 0.10)
|
107
|
+
multi_json (~> 1.3)
|
108
|
+
oauth2 (~> 0.9.3)
|
109
|
+
omniauth (~> 1.2)
|
110
|
+
omniauth-openid (1.0.1)
|
111
|
+
omniauth (~> 1.0)
|
112
|
+
rack-openid (~> 1.3.1)
|
113
|
+
origin (1.1.0)
|
114
|
+
orm_adapter (0.5.0)
|
115
|
+
polyglot (0.3.5)
|
116
|
+
rack (1.4.7)
|
117
|
+
rack-cache (1.6.1)
|
118
|
+
rack (>= 0.4)
|
119
|
+
rack-openid (1.3.1)
|
120
|
+
rack (>= 1.1.0)
|
121
|
+
ruby-openid (>= 2.1.8)
|
122
|
+
rack-ssl (1.3.4)
|
123
|
+
rack
|
124
|
+
rack-test (0.6.3)
|
125
|
+
rack (>= 1.0)
|
126
|
+
rake (11.1.2)
|
127
|
+
rdoc (3.12.2)
|
128
|
+
json (~> 1.4)
|
129
|
+
responders (1.1.2)
|
130
|
+
railties (>= 3.2, < 4.2)
|
131
|
+
ruby-openid (2.7.0)
|
132
|
+
sprockets (2.2.3)
|
133
|
+
hike (~> 1.2)
|
134
|
+
multi_json (~> 1.0)
|
135
|
+
rack (~> 1.0)
|
136
|
+
tilt (~> 1.1, != 1.3.0)
|
137
|
+
sqlite3 (1.3.11)
|
138
|
+
thor (0.19.1)
|
139
|
+
thread_safe (0.3.5)
|
140
|
+
tilt (1.4.1)
|
141
|
+
treetop (1.4.15)
|
142
|
+
polyglot
|
143
|
+
polyglot (>= 0.3.1)
|
144
|
+
tzinfo (0.3.49)
|
145
|
+
warden (1.2.6)
|
146
|
+
rack (>= 1.0)
|
147
|
+
webrat (0.7.3)
|
148
|
+
nokogiri (>= 1.2.0)
|
149
|
+
rack (>= 1.0)
|
150
|
+
rack-test (>= 0.5.3)
|
151
|
+
|
152
|
+
PLATFORMS
|
153
|
+
ruby
|
154
|
+
|
155
|
+
DEPENDENCIES
|
156
|
+
activerecord-jdbc-adapter
|
157
|
+
activerecord-jdbcsqlite3-adapter
|
158
|
+
devise!
|
159
|
+
jruby-openssl
|
160
|
+
mocha (~> 1.1)
|
161
|
+
mongoid (~> 3.0)
|
162
|
+
omniauth (~> 1.2.0)
|
163
|
+
omniauth-facebook
|
164
|
+
omniauth-oauth2 (~> 1.1.0)
|
165
|
+
omniauth-openid (~> 1.0.1)
|
166
|
+
rails!
|
167
|
+
rdoc
|
168
|
+
sqlite3
|
169
|
+
webrat (= 0.7.3)
|
170
|
+
|
171
|
+
BUNDLED WITH
|
172
|
+
1.11.2
|
@@ -0,0 +1,30 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gemspec path: '..'
|
4
|
+
|
5
|
+
gem "rails", github: 'rails/rails', branch: '4-0-stable'
|
6
|
+
gem "omniauth", "~> 1.2.0"
|
7
|
+
gem "omniauth-oauth2", "~> 1.1.0"
|
8
|
+
gem "rdoc"
|
9
|
+
gem "mime-types", "~> 2.99"
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem "omniauth-facebook"
|
13
|
+
gem "omniauth-openid", "~> 1.0.1"
|
14
|
+
gem "webrat", "0.7.3", require: false
|
15
|
+
gem "mocha", "~> 1.1", require: false
|
16
|
+
end
|
17
|
+
|
18
|
+
platforms :jruby do
|
19
|
+
gem "activerecord-jdbc-adapter"
|
20
|
+
gem "activerecord-jdbcsqlite3-adapter"
|
21
|
+
gem "jruby-openssl"
|
22
|
+
end
|
23
|
+
|
24
|
+
platforms :ruby do
|
25
|
+
gem "sqlite3"
|
26
|
+
end
|
27
|
+
|
28
|
+
group :mongoid do
|
29
|
+
gem "mongoid", "~> 4.0.0"
|
30
|
+
end
|