solidus_auth_devise_devise_token_auth 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +20 -0
  5. data/CHANGELOG.md +173 -0
  6. data/Gemfile +36 -0
  7. data/LICENSE.md +26 -0
  8. data/README.md +98 -0
  9. data/Rakefile +21 -0
  10. data/app/mailers/spree/user_mailer.rb +15 -0
  11. data/app/models/spree/auth_configuration.rb +9 -0
  12. data/app/models/spree/user.rb +47 -0
  13. data/app/overrides/auth_admin_login_navigation_bar.rb +10 -0
  14. data/app/overrides/auth_shared_login_bar.rb +10 -0
  15. data/bin/rails +7 -0
  16. data/circle.yml +6 -0
  17. data/config/initializers/devise.rb +141 -0
  18. data/config/initializers/warden.rb +14 -0
  19. data/config/locales/de.yml +53 -0
  20. data/config/locales/en.yml +54 -0
  21. data/config/locales/es.yml +50 -0
  22. data/config/locales/fr.yml +50 -0
  23. data/config/locales/it.yml +76 -0
  24. data/config/locales/nl.yml +50 -0
  25. data/config/locales/pt-BR.yml +52 -0
  26. data/config/locales/tr.yml +50 -0
  27. data/config/locales/zh-CN.yml +54 -0
  28. data/config/routes.rb +71 -0
  29. data/db/default/users.rb +75 -0
  30. data/db/migrate/20101026184949_create_users.rb +29 -0
  31. data/db/migrate/20101026184950_rename_columns_for_devise.rb +41 -0
  32. data/db/migrate/20101214150824_convert_user_remember_field.rb +11 -0
  33. data/db/migrate/20120203010234_add_reset_password_sent_at_to_spree_users.rb +8 -0
  34. data/db/migrate/20120605211305_make_users_email_index_unique.rb +9 -0
  35. data/db/migrate/20140904000425_add_deleted_at_to_users.rb +6 -0
  36. data/db/migrate/20141002154641_add_confirmable_to_users.rb +7 -0
  37. data/db/seeds.rb +1 -0
  38. data/lib/assets/javascripts/spree/backend/solidus_auth.js +1 -0
  39. data/lib/assets/javascripts/spree/frontend/solidus_auth.js +1 -0
  40. data/lib/assets/stylesheets/spree/backend/solidus_auth.css +3 -0
  41. data/lib/assets/stylesheets/spree/frontend/solidus_auth.css +3 -0
  42. data/lib/controllers/backend/spree/admin/admin_controller_decorator.rb +11 -0
  43. data/lib/controllers/backend/spree/admin/orders/customer_details_controller_decorator.rb +15 -0
  44. data/lib/controllers/backend/spree/admin/user_passwords_controller.rb +41 -0
  45. data/lib/controllers/backend/spree/admin/user_sessions_controller.rb +43 -0
  46. data/lib/controllers/frontend/spree/checkout_controller_decorator.rb +66 -0
  47. data/lib/controllers/frontend/spree/user_confirmations_controller.rb +14 -0
  48. data/lib/controllers/frontend/spree/user_passwords_controller.rb +50 -0
  49. data/lib/controllers/frontend/spree/user_registrations_controller.rb +40 -0
  50. data/lib/controllers/frontend/spree/user_sessions_controller.rb +64 -0
  51. data/lib/controllers/frontend/spree/users_controller.rb +57 -0
  52. data/lib/generators/solidus/auth/install/install_generator.rb +25 -0
  53. data/lib/generators/solidus/auth/install/templates/config/initializers/devise.rb +1 -0
  54. data/lib/solidus/auth.rb +2 -0
  55. data/lib/solidus_auth_devise.rb +13 -0
  56. data/lib/spree/auth/devise.rb +14 -0
  57. data/lib/spree/auth/engine.rb +80 -0
  58. data/lib/spree/authentication_helpers.rb +33 -0
  59. data/lib/tasks/auth.rake +9 -0
  60. data/lib/views/backend/spree/admin/shared/_navigation_footer.html.erb +25 -0
  61. data/lib/views/backend/spree/admin/user_passwords/edit.html.erb +15 -0
  62. data/lib/views/backend/spree/admin/user_passwords/new.html.erb +17 -0
  63. data/lib/views/backend/spree/admin/user_sessions/authorization_failure.html.erb +4 -0
  64. data/lib/views/backend/spree/admin/user_sessions/new.html.erb +31 -0
  65. data/lib/views/backend/spree/layouts/admin/_login_nav.html.erb +13 -0
  66. data/lib/views/frontend/spree/checkout/registration.html.erb +22 -0
  67. data/lib/views/frontend/spree/shared/_flashes.html.erb +9 -0
  68. data/lib/views/frontend/spree/shared/_login.html.erb +18 -0
  69. data/lib/views/frontend/spree/shared/_login_bar.html.erb +2 -0
  70. data/lib/views/frontend/spree/shared/_login_bar_items.html.erb +6 -0
  71. data/lib/views/frontend/spree/shared/_user_form.html.erb +17 -0
  72. data/lib/views/frontend/spree/user_mailer/confirmation_instructions.text.erb +5 -0
  73. data/lib/views/frontend/spree/user_mailer/reset_password_instructions.text.erb +10 -0
  74. data/lib/views/frontend/spree/user_passwords/edit.html.erb +17 -0
  75. data/lib/views/frontend/spree/user_passwords/new.html.erb +17 -0
  76. data/lib/views/frontend/spree/user_registrations/new.html.erb +21 -0
  77. data/lib/views/frontend/spree/user_sessions/authorization_failure.html.erb +4 -0
  78. data/lib/views/frontend/spree/user_sessions/new.html.erb +13 -0
  79. data/lib/views/frontend/spree/users/edit.html.erb +14 -0
  80. data/lib/views/frontend/spree/users/show.html.erb +43 -0
  81. data/solidus_auth_devise.gemspec +41 -0
  82. data/spec/controllers/spree/checkout_controller_spec.rb +196 -0
  83. data/spec/controllers/spree/products_controller_spec.rb +27 -0
  84. data/spec/controllers/spree/user_passwords_controller_spec.rb +44 -0
  85. data/spec/controllers/spree/user_registrations_controller_spec.rb +96 -0
  86. data/spec/controllers/spree/user_sessions_controller_spec.rb +113 -0
  87. data/spec/controllers/spree/users_controller_spec.rb +38 -0
  88. data/spec/factories/confirmed_user.rb +7 -0
  89. data/spec/features/account_spec.rb +58 -0
  90. data/spec/features/admin/orders_spec.rb +30 -0
  91. data/spec/features/admin/password_reset_spec.rb +24 -0
  92. data/spec/features/admin/products_spec.rb +9 -0
  93. data/spec/features/admin/sign_in_spec.rb +44 -0
  94. data/spec/features/admin/sign_out_spec.rb +22 -0
  95. data/spec/features/admin_permissions_spec.rb +46 -0
  96. data/spec/features/change_email_spec.rb +26 -0
  97. data/spec/features/checkout_spec.rb +181 -0
  98. data/spec/features/confirmation_spec.rb +32 -0
  99. data/spec/features/order_spec.rb +62 -0
  100. data/spec/features/password_reset_spec.rb +24 -0
  101. data/spec/features/sign_in_spec.rb +52 -0
  102. data/spec/features/sign_out_spec.rb +25 -0
  103. data/spec/features/sign_up_spec.rb +30 -0
  104. data/spec/mailers/user_mailer_spec.rb +46 -0
  105. data/spec/models/order_spec.rb +26 -0
  106. data/spec/models/user_spec.rb +63 -0
  107. data/spec/spec_helper.rb +17 -0
  108. data/spec/support/ability.rb +15 -0
  109. data/spec/support/authentication_helpers.rb +14 -0
  110. data/spec/support/confirm_helpers.rb +13 -0
  111. data/spec/support/email.rb +5 -0
  112. data/spec/support/preferences.rb +5 -0
  113. data/spec/support/spree.rb +10 -0
  114. metadata +446 -0
@@ -0,0 +1,10 @@
1
+ if SolidusSupport.solidus_gem_version < Gem::Version.new('1.2')
2
+ Deface::Override.new(
3
+ virtual_path: "spree/admin/shared/_header",
4
+ name: "auth_admin_login_navigation_bar",
5
+ insert_before: "[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]",
6
+ partial: "spree/layouts/admin/login_nav",
7
+ disabled: false,
8
+ original: '841227d0aedf7909d62237d8778df99100087715'
9
+ )
10
+ end
@@ -0,0 +1,10 @@
1
+ if SolidusSupport.frontend_available? && SolidusSupport.solidus_gem_version < Gem::Version.new('2.5.x')
2
+ Deface::Override.new(
3
+ virtual_path: "spree/shared/_nav_bar",
4
+ name: "auth_shared_login_bar",
5
+ insert_before: "li#search-bar",
6
+ partial: "spree/shared/login_bar_items",
7
+ disabled: false,
8
+ original: 'eb3fa668cd98b6a1c75c36420ef1b238a1fc55ac'
9
+ )
10
+ end
data/bin/rails ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
4
+ ENGINE_PATH = File.expand_path('../../lib/spree/auth/engine', __FILE__)
5
+
6
+ require 'rails/all'
7
+ require 'rails/engine/commands'
data/circle.yml ADDED
@@ -0,0 +1,6 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.1.5
4
+ test:
5
+ pre:
6
+ - bundle exec rake test_app
@@ -0,0 +1,141 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth. The first
2
+ # four configuration values can also be set straight in your models.
3
+ Devise.setup do |config|
4
+ # ==> Mailer Configuration
5
+ # Configure the e-mail address which will be shown in DeviseMailer.
6
+ config.mailer_sender = 'please-change-me@config-initializers-devise.com'
7
+
8
+ # Configure the class responsible to send e-mails.
9
+ config.mailer = 'Spree::UserMailer'
10
+
11
+ # ==> ORM configuration
12
+ # Load and configure the ORM. Supports :active_record (default) and
13
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
14
+ # available as additional gems.
15
+ require 'devise/orm/active_record'
16
+
17
+ # ==> Configuration for any authentication mechanism
18
+ # Configure which keys are used when authenticating an user. By default is
19
+ # just :email. You can configure it to use [:username, :subdomain], so for
20
+ # authenticating an user, both parameters are required. Remember that those
21
+ # parameters are used only when authenticating and not when retrieving from
22
+ # session. If you need permissions, you should implement that in a before filter.
23
+ # config.authentication_keys = [ :email ]
24
+
25
+ # Tell if authentication through request.params is enabled. True by default.
26
+ # config.params_authenticatable = true
27
+
28
+ # Tell if authentication through HTTP Basic Auth is enabled. False by default.
29
+ config.http_authenticatable = true
30
+
31
+ # Set this to true to use Basic Auth for AJAX requests. True by default.
32
+ #config.http_authenticatable_on_xhr = false
33
+
34
+ # The realm used in Http Basic Authentication
35
+ config.http_authentication_realm = 'Spree Application'
36
+
37
+ # ==> Configuration for :database_authenticatable
38
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
39
+ # using other encryptors, it sets how many times you want the password re-encrypted.
40
+ config.stretches = 20
41
+ config.encryptor = 'authlogic_sha512'
42
+
43
+ # Setup a pepper to generate the encrypted password.
44
+ config.pepper = Rails.configuration.secret_token
45
+
46
+ # ==> Configuration for :confirmable
47
+ # The time you want to give your user to confirm his account. During this time
48
+ # he will be able to access your application without confirming. Default is nil.
49
+ # When confirm_within is zero, the user won't be able to sign in without confirming.
50
+ # You can use this to let your user access some features of your application
51
+ # without confirming the account, but blocking it after a certain period
52
+ # (ie 2 days).
53
+ # config.confirm_within = 2.days
54
+
55
+ # ==> Configuration for :rememberable
56
+ # The time the user will be remembered without asking for credentials again.
57
+ # config.remember_for = 2.weeks
58
+
59
+ # If true, a valid remember token can be re-used between multiple browsers.
60
+ # config.remember_across_browsers = true
61
+
62
+ # If true, extends the user's remember period when remembered via cookie.
63
+ # config.extend_remember_period = false
64
+
65
+ # ==> Configuration for :validatable
66
+ # Range for password length
67
+ # config.password_length = 6..20
68
+
69
+ # ==> Configuration for :timeoutable
70
+ # The time you want to timeout the user session without activity. After this
71
+ # time the user will be asked for credentials again.
72
+ # config.timeout_in = 10.minutes
73
+
74
+ # ==> Configuration for :lockable
75
+ # Defines which strategy will be used to lock an account.
76
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
77
+ # :none = No lock strategy. You should handle locking by yourself.
78
+ # config.lock_strategy = :failed_attempts
79
+
80
+ # Defines which strategy will be used to unlock an account.
81
+ # :email = Sends an unlock link to the user email
82
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
83
+ # :both = Enables both strategies
84
+ # :none = No unlock strategy. You should handle unlocking by yourself.
85
+ # config.unlock_strategy = :both
86
+
87
+ # Number of authentication tries before locking an account if lock_strategy
88
+ # is failed attempts.
89
+ # config.maximum_attempts = 20
90
+
91
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
92
+ # config.unlock_in = 1.hour
93
+
94
+ # ==> Scopes configuration
95
+ # Turn scoped views on. Before rendering 'sessions/new', it will first check for
96
+ # 'users/sessions/new'. It's turned off by default because it's slower if you
97
+ # are using only default views.
98
+ # config.scoped_views = true
99
+
100
+ # Configure the default scope given to Warden. By default it's the first
101
+ # devise role declared in your routes.
102
+ # config.default_scope = :user
103
+
104
+ # Configure sign_out behavior.
105
+ # By default sign_out is scoped (i.e. /users/sign_out affects only :user scope).
106
+ # In case of sign_out_all_scopes set to true any logout action will sign out all active scopes.
107
+ # config.sign_out_all_scopes = false
108
+
109
+ # ==> Navigation configuration
110
+ # Lists the formats that should be treated as navigational. Formats like
111
+ # :html, should redirect to the sign in page when the user does not have
112
+ # access, but formats like :xml or :json, should return 401.
113
+ # If you have any extra navigational formats, like :iphone or :mobile, you
114
+ # should add them to the navigational formats lists. Default is [:html]
115
+ config.navigational_formats = [:html, :json, :xml]
116
+
117
+ # ==> Warden configuration
118
+ # If you want to use other strategies, that are not (yet) supported by Devise,
119
+ # you can configure them inside the config.warden block. The example below
120
+ # allows you to setup OAuth, using http://github.com/roman/warden_oauth
121
+ #
122
+ # config.warden do |manager|
123
+ # manager.oauth(:twitter) do |twitter|
124
+ # twitter.consumer_secret = <YOUR CONSUMER SECRET>
125
+ # twitter.consumer_key = <YOUR CONSUMER KEY>
126
+ # twitter.options :site => 'http://twitter.com'
127
+ # end
128
+ # manager.default_strategies(:scope => :user).unshift :twitter_oauth
129
+ # end
130
+ #
131
+ # Time interval you can reset your password with a reset password key.
132
+ # Don't put a too small interval or your users won't have the time to
133
+ # change their passwords.
134
+ config.reset_password_within = 6.hours
135
+ config.sign_out_via = :get
136
+
137
+ config.case_insensitive_keys = [:email]
138
+
139
+ # Direct Devise to use the Spree router when attempting to find resource routes.
140
+ config.router_name = :spree
141
+ end
@@ -0,0 +1,14 @@
1
+ # Merges users orders to their account after sign in and sign up.
2
+ Warden::Manager.after_set_user except: :fetch do |user, auth, opts|
3
+ if auth.cookies.signed[:guest_token].present?
4
+ if user.is_a?(Spree::User)
5
+ Spree::Order.incomplete.where(guest_token: auth.cookies.signed[:guest_token], user_id: nil).each do |order|
6
+ order.associate_user!(user)
7
+ end
8
+ end
9
+ end
10
+ end
11
+
12
+ Warden::Manager.before_logout do |user, auth, opts|
13
+ auth.cookies.delete :guest_token
14
+ end
@@ -0,0 +1,53 @@
1
+ ---
2
+ de:
3
+ spree:
4
+ admin_login: Admin anmelden
5
+ devise:
6
+ confirmations:
7
+ confirmed: Ihr Konto wurde erfolgreich aktiviert.
8
+ send_instructions: 'In ein paar Minuten erhalten Sie eine E-Mail mit Anweisungen, um Ihr Konto zu aktivieren.'
9
+ failure:
10
+ already_authenticated: Sie sind bereits angemeldet.
11
+ inactive: Ihr Konto wurde noch nicht aktiviert.
12
+ invalid: Ungültige E-Mail-Adresse oder Passwort.
13
+ invalid_token: Ungültiger Authentifizierungsschlüssel.
14
+ locked: Ihr Konto ist gesperrt.
15
+ timeout: 'Ihre Sitzung ist abgelaufen. Bitte melden Sie sich erneut an, um fortzufahren.'
16
+ unauthenticated: 'Sie müssen sich anmelden oder registrieren, bevor Sie fortfahren.'
17
+ unconfirmed: 'Sie müssen Ihre Registrierung bestätigen, bevor Sie fortfahren.'
18
+ mailer:
19
+ confirmation_instructions:
20
+ subject: Bestätigen Sie Ihre Registrierung
21
+ reset_password_instructions:
22
+ subject: Passwort zurücksetzen
23
+ unlock_instructions:
24
+ subject: Konto freischalten
25
+ oauth_callbacks:
26
+ failure: 'Autorisierung durch %{kind} fehlgeschlagen aufgrund von %{reason}.'
27
+ success: 'Erfolgreich autorisiert durch %{kind} Konto.'
28
+ unlocks:
29
+ send_instructions: In ein paar Minuten erhalten Sie eine E-Mail mit Anweisungen um Ihr Konto freizuschalten.
30
+ unlocked: Ihr Konto wurde erfolgreich freigeschaltet.
31
+ user_passwords:
32
+ spree_user:
33
+ cannot_be_blank: Ihr Passwort darf nicht leer sein.
34
+ send_instructions: In ein paar Minuten erhalten Sie eine E-Mail mit Anweisungen um Ihr Passwort zurücksetzen.
35
+ updated: Ihr Passwort wurde erfolgreich geändert.
36
+ user_registrations:
37
+ destroyed: Ihr Konto wurde erfolgreich gelöscht. Auf Wiedersehen!
38
+ inactive_signed_up: 'Sie haben sich erfolgreich registriert. Wir konnten Sie jedoch nicht anmelden, da Ihr Konto %{reason} ist.'
39
+ signed_up: Herzlich Willkommen! Sie haben sich erfolgreich registriert.
40
+ updated: Sie haben Ihr Konto erfolgreich aktualisiert.
41
+ user_sessions:
42
+ signed_in: Erfolgreich angemeldet.
43
+ signed_out: Erfolgreich abgemeldet.
44
+ already_signed_in: Bereits angemeldet.
45
+ errors:
46
+ messages:
47
+ already_confirmed: wurde berreits bestätigt
48
+ email_is_invalid: E-Mail-Adresse darf nicht leer sein
49
+ not_found: nicht gefunden
50
+ not_locked: war nicht gesperrt
51
+ not_saved:
52
+ one: '1 Fehler verhindert das Speichern von %{resource}:'
53
+ other: '%{count} Fehler verhindern das Speichern von %{resource}:'
@@ -0,0 +1,54 @@
1
+ ---
2
+ en:
3
+ spree:
4
+ admin_login: Admin Login
5
+ devise:
6
+ confirmations:
7
+ confirmed: Your account was successfully confirmed. You are now signed in.
8
+ send_instructions: You will receive an email with instructions about how to confirm your account in a few minutes.
9
+ failure:
10
+ already_authenticated: You are already signed in.
11
+ inactive: Your account was not activated yet.
12
+ invalid: Invalid email or password.
13
+ invalid_token: Invalid authentication token.
14
+ locked: Your account is locked.
15
+ timeout: 'Your session expired, please sign in again to continue.'
16
+ unauthenticated: You need to sign in or sign up before continuing.
17
+ unconfirmed: You have to confirm your account before continuing.
18
+ mailer:
19
+ confirmation_instructions:
20
+ subject: Confirmation instructions
21
+ reset_password_instructions:
22
+ subject: Reset password instructions
23
+ unlock_instructions:
24
+ subject: Unlock Instructions
25
+ oauth_callbacks:
26
+ failure: 'Could not authorize you from %{kind} because %{reason}.'
27
+ success: 'Successfully authorized from %{kind} account.'
28
+ unlocks:
29
+ send_instructions: You will receive an email with instructions about how to unlock your account in a few minutes.
30
+ unlocked: Your account was successfully unlocked. You are now signed in.
31
+ user_passwords:
32
+ spree_user:
33
+ cannot_be_blank: Your password cannot be blank.
34
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
35
+ send_instructions: You will receive an email with instructions about how to reset your password in a few minutes.
36
+ updated: Your password was changed successfully. You are now signed in.
37
+ user_registrations:
38
+ destroyed: Bye! Your account was successfully cancelled. We hope to see you again soon.
39
+ inactive_signed_up: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
40
+ signed_up: Welcome! You have signed up successfully.
41
+ updated: You updated your account successfully.
42
+ user_sessions:
43
+ signed_in: Signed in successfully.
44
+ signed_out: Signed out successfully.
45
+ already_signed_in: Already signed in.
46
+ errors:
47
+ messages:
48
+ already_confirmed: was already confirmed
49
+ email_is_invalid: Email address cannot be blank
50
+ not_found: not found
51
+ not_locked: was not locked
52
+ not_saved:
53
+ one: '1 error prohibited this %{resource} from being saved:'
54
+ other: '%{count} errors prohibited this %{resource} from being saved:'
@@ -0,0 +1,50 @@
1
+ ---
2
+ es:
3
+ devise:
4
+ confirmations:
5
+ confirmed: Su cuenta ha sido confirmada. Ahora está conectado.
6
+ send_instructions: Recibirá un email con instrucciones acerca de como confirmar su cuenta en pocos minutos.
7
+ failure:
8
+ already_authenticated: Ya has iniciado sesión.
9
+ inactive: Su cuenta no ha sido activada aún.
10
+ invalid: Dirección de correo o contraseña no válidos.
11
+ invalid_token: Token de autenticación no válido.
12
+ locked: Su cuenta está bloqueada.
13
+ timeout: 'Su sesión ha expirado, por favor conéctese de nuevo para continuar.'
14
+ unauthenticated: Necesita conectarse o registrarse para continuar.
15
+ unconfirmed: Necesita confirmar su cuenta para continuar.
16
+ mailer:
17
+ confirmation_instructions:
18
+ subject: Instrucciones de confirmación
19
+ reset_password_instructions:
20
+ subject: Instrucciones para restablecer la contraseña
21
+ unlock_instructions:
22
+ subject: Instrucciones de desbloqueo
23
+ oauth_callbacks:
24
+ failure: 'No es posible autorizarle desde %{kind} porque %{reason}.'
25
+ success: 'Cuenta autorizada correctamente desde %{kind}.'
26
+ unlocks:
27
+ send_instructions: Recibirá un email con instrucciones acerca de cómo desbloquear su cuenta en pocos minutos.
28
+ unlocked: Su cuenta ha sido desbloqueada correctamente. Ahora está conectado.
29
+ user_passwords:
30
+ spree_user:
31
+ cannot_be_blank: La contraseña no puede estar en blanco.
32
+ send_instructions: Recibirá un email con instrucciones acerca de como restaurar su contraseña en pocos minutos.
33
+ updated: Su contraseña ha sido cambiada correctamente. Ahora está conectado.
34
+ user_registrations:
35
+ destroyed: Hasta luego! Su cuenta ha sido cancelada correctamente. Esperamos volver a verle pronto.
36
+ inactive_signed_up: 'Ha sido registrado correctamente. Sin embargo, no se puede acceder porque su cuenta está %{reason}.'
37
+ signed_up: Bienvenido! Ha sido registrado correctamente.
38
+ updated: Su cuenta ha sido actualizada correctamente .
39
+ user_sessions:
40
+ signed_in: Conectado correctamente.
41
+ signed_out: Desconectado correctamente.
42
+ errors:
43
+ messages:
44
+ already_confirmed: ya estaba confirmado
45
+ email_is_invalid: dirección de correo electrónico no puede estar en blanco
46
+ not_found: no encontrado
47
+ not_locked: no estaba bloqueado
48
+ not_saved:
49
+ one: '1 error impidió guardar este %{resource}:'
50
+ other: '%{count} errores impidieron guardar este %{resource}:'
@@ -0,0 +1,50 @@
1
+ ---
2
+ fr:
3
+ devise:
4
+ confirmations:
5
+ confirmed: Votre compte a été confirmé. Vous êtes maintenant connecté(e).
6
+ send_instructions: Vous recevrez dans quelques minutes un courriel avec les instructions sur la façon de confirmer votre compte.
7
+ failure:
8
+ already_authenticated: Vous êtes déjà connecté(e).
9
+ inactive: Votre compte n'a pas encore été activé.
10
+ invalid: Courriel ou mot de passe non valide.
11
+ invalid_token: Jeton d'authentification non valide.
12
+ locked: Votre compte est bloqué.
13
+ timeout: 'Votre session a expiré, merci de bien vouloir vous connecter à nouveau pour continuer.'
14
+ unauthenticated: Vous devez vous identifier ou vous inscrire avant de poursuivre.
15
+ unconfirmed: Vous devez confirmer votre compte avant de continuer.
16
+ mailer:
17
+ confirmation_instructions:
18
+ subject: Instructions de confirmation d'inscription
19
+ reset_password_instructions:
20
+ subject: Instructions pour réinitialiser votre mot de passe
21
+ unlock_instructions:
22
+ subject: Instructions pour déverrouiller votre compte
23
+ oauth_callbacks:
24
+ failure: 'Connexion impossible pour le compte %{kind} car %{reason}.'
25
+ success: 'Connexion avec succès pour le compte %{kind}.'
26
+ unlocks:
27
+ send_instructions: Vous recevrez dans quelques minutes un courriel avec les instructions sur la façon de déverrouiller votre compte.
28
+ unlocked: Votre compte a été déverrouillé. Vous êtes maintenant connecté(e).
29
+ user_passwords:
30
+ spree_user:
31
+ cannot_be_blank: Votre mot de passe ne peut pas être vide.
32
+ send_instructions: Vous recevrez dans quelques minutes un courriel avec les instructions sur la façon de réinitialiser votre mot de passe.
33
+ updated: Votre mot de passe a été changé avec succès. Vous êtes maintenant connecté(e).
34
+ user_registrations:
35
+ destroyed: Au revoir! Votre compte a été annulé. Nous espérons vous revoir bientôt.
36
+ inactive_signed_up: "Vous vous êtes inscrit(e) avec succès. Cependant, nous n'avons pu vous connecter car votre compte est %{reason}."
37
+ signed_up: Bienvenue! Vous vous êtes inscrit(e) avec succès.
38
+ updated: Vous avez mis à jour votre compte avec succès.
39
+ user_sessions:
40
+ signed_in: Connexion avec succès.
41
+ signed_out: Déconnexion avec succès.
42
+ errors:
43
+ messages:
44
+ already_confirmed: a déjà été confirmé
45
+ email_is_invalid: adresse e-mail ne peut pas être vide
46
+ not_found: "n'a pas été trouvé"
47
+ not_locked: "n'a pas été bloqué"
48
+ not_saved:
49
+ one: "1 erreur interdit cette %{ressource} d'être enregistrée :"
50
+ other: "%{count} erreurs interdisent cette %{resource} d'être enregistrée :"
@@ -0,0 +1,76 @@
1
+ it:
2
+ spree:
3
+ admin:
4
+ tab:
5
+ users: Utenti
6
+ devise:
7
+ confirmations:
8
+ confirmed: Il tuo account è stato correttamente confermato. Ora sei collegato.
9
+ send_instructions: Riceverai un messaggio email con le istruzioni per confermare il tuo account entro qualche minuto.
10
+ send_paranoid_instructions: Se la tua e-mail esiste nel nostro database, riceverai un messaggio email con le istruzioni per confermare il tuo account entro qualche minuto.
11
+ failure:
12
+ already_authenticated: Hai già effettuato l'accesso.
13
+ inactive: Il tuo account non è stato ancora attivato.
14
+ invalid: Indirizzo email o password non validi.
15
+ invalid_token: Token di autenticazione non valido.
16
+ last_attempt: Hai ancora un tentativo prima che l'account venga bloccato.
17
+ locked: Il tuo account è bloccato.
18
+ not_found_in_database: Email o password non validi.
19
+ timeout: Sessione scaduta, accedere nuovamente per continuare.
20
+ unauthenticated: Devi accedere o registrarti per continuare.
21
+ unconfirmed: Devi confermare il tuo account per continuare.
22
+ mailer:
23
+ confirmation_instructions:
24
+ subject: Istruzioni per la conferma
25
+ reset_password_instructions:
26
+ subject: Istruzioni per reimpostare la password
27
+ unlock_instructions:
28
+ subject: Istruzioni per sbloccare l'account
29
+ omniauth_callbacks:
30
+ failure: Non è stato possibile autorizzarti da %{kind} perché "%{reason}".
31
+ success: Autorizzato con successo dall'account %{kind}.
32
+ passwords:
33
+ no_token: Puoi accedere a questa pagina solamente dalla email di reset della password. Se vieni dalla email controlla di aver inserito l'url completo riportato nella email.
34
+ send_instructions: Riceverai un messaggio email con le istruzioni per reimpostare la tua password entro qualche minuto.
35
+ send_paranoid_instructions: Se la tua e-mail esiste nel nostro database, riceverai un messaggio email contentente un link per il ripristino della password
36
+ updated: La tua password è stata cambiata. Ora sei collegato.
37
+ updated_not_active: La tua password è stata cambiata.
38
+ registrations:
39
+ destroyed: Arrivederci! L'account è stato cancellato. Speriamo di rivederci presto.
40
+ signed_up: Iscrizione eseguita correttamente. Se abilitata, una conferma è stata inviata al tuo indirizzo email.
41
+ signed_up_but_inactive: Iscrizione eseguita correttamente. Però non puoi accedere in quanto il tuo account non è ancora attivo.
42
+ signed_up_but_locked: Iscrizione eseguita correttamente. Però non puoi accedere in quanto il tuo account è bloccato.
43
+ signed_up_but_unconfirmed: Ti è stato inviato un messaggio con un link di conferma. Ti invitiamo a visitare il link per attivare il tuo account.
44
+ update_needs_confirmation: Il tuo account è stato aggiornato, ma dobbiamo verificare la tua email. Ti invitiamo a consultare la tua email e cliccare sul link di conferma.
45
+ updated: Il tuo account è stato aggiornato.
46
+ sessions:
47
+ signed_in: Accesso effettuato con successo.
48
+ signed_out: Sei uscito correttamente.
49
+ unlocks:
50
+ send_instructions: Riceverai un messaggio email con le istruzioni per sbloccare il tuo account entro qualche minuto.
51
+ send_paranoid_instructions: Se la tua e-mail esiste nel nostro database, riceverai un messaggio email con le istruzioni per sbloccare il tuo account entro qualche minuto.
52
+ unlocked: Il tuo account è stato correttamente sbloccato. Ora sei collegato.
53
+ user_passwords:
54
+ spree_user:
55
+ cannot_be_blank: La tua password non può essere vuota.
56
+ send_instructions: Riceverai un'email con le istruzioni per resettare la tua password entro qualche minuto.
57
+ updated: La tua password è stata cambiata con successo. Ora sei collegato.
58
+ user_registrations:
59
+ destroyed: Addio! Il tuo account è stato correttamente cancellato. Speriamo di rivederti presto.
60
+ inactive_signed_up: Ti sei collegato con successo. Tuttavia non possiamo collegarti perché il tuo account è %{reason}.
61
+ signed_up: Benvenuto! Ti sei collegato con successo.
62
+ updated: Hai aggiornato correttamente il tuo account.
63
+ user_sessions:
64
+ signed_in: Collegato con successo.
65
+ signed_out: Uscito correttamente.
66
+ errors:
67
+ messages:
68
+ email_is_invalid: L'indirizzo email non può essere vuoto
69
+ already_confirmed: è stato già confermato
70
+ confirmation_period_expired: deve essere confermato entro %{period}, richiedi una nuova conferma
71
+ expired: è scaduto, si prega di richiederne uno nuovo
72
+ not_found: non trovato
73
+ not_locked: non era bloccato
74
+ not_saved:
75
+ one: ! 'Non posso salvare questo %{resource}: 1 errore'
76
+ other: ! 'Non posso salvare questo %{resource}: %{count} errori.'