digix_devise_token_auth 0.1.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +13 -0
  3. data/README.md +952 -0
  4. data/Rakefile +35 -0
  5. data/app/controllers/devise_token_auth/application_controller.rb +76 -0
  6. data/app/controllers/devise_token_auth/concerns/resource_finder.rb +43 -0
  7. data/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +165 -0
  8. data/app/controllers/devise_token_auth/confirmations_controller.rb +30 -0
  9. data/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +243 -0
  10. data/app/controllers/devise_token_auth/passwords_controller.rb +202 -0
  11. data/app/controllers/devise_token_auth/registrations_controller.rb +205 -0
  12. data/app/controllers/devise_token_auth/sessions_controller.rb +133 -0
  13. data/app/controllers/devise_token_auth/token_validations_controller.rb +29 -0
  14. data/app/controllers/devise_token_auth/unlocks_controller.rb +89 -0
  15. data/app/models/devise_token_auth/concerns/user.rb +260 -0
  16. data/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb +26 -0
  17. data/app/validators/email_validator.rb +21 -0
  18. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  19. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  20. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  21. data/app/views/devise_token_auth/omniauth_external_window.html.erb +38 -0
  22. data/config/initializers/devise.rb +196 -0
  23. data/config/locales/da-DK.yml +50 -0
  24. data/config/locales/de.yml +49 -0
  25. data/config/locales/en.yml +50 -0
  26. data/config/locales/es.yml +49 -0
  27. data/config/locales/fr.yml +49 -0
  28. data/config/locales/it.yml +46 -0
  29. data/config/locales/ja.yml +46 -0
  30. data/config/locales/nl.yml +30 -0
  31. data/config/locales/pl.yml +48 -0
  32. data/config/locales/pt-BR.yml +46 -0
  33. data/config/locales/pt.yml +48 -0
  34. data/config/locales/ro.yml +46 -0
  35. data/config/locales/ru.yml +50 -0
  36. data/config/locales/sq.yml +46 -0
  37. data/config/locales/uk.yml +59 -0
  38. data/config/locales/vi.yml +50 -0
  39. data/config/locales/zh-CN.yml +46 -0
  40. data/config/locales/zh-HK.yml +48 -0
  41. data/config/locales/zh-TW.yml +48 -0
  42. data/lib/devise_token_auth.rb +8 -0
  43. data/lib/devise_token_auth/controllers/helpers.rb +149 -0
  44. data/lib/devise_token_auth/controllers/url_helpers.rb +8 -0
  45. data/lib/devise_token_auth/engine.rb +90 -0
  46. data/lib/devise_token_auth/rails/routes.rb +114 -0
  47. data/lib/devise_token_auth/url.rb +37 -0
  48. data/lib/devise_token_auth/version.rb +3 -0
  49. data/lib/generators/devise_token_auth/USAGE +31 -0
  50. data/lib/generators/devise_token_auth/install_generator.rb +160 -0
  51. data/lib/generators/devise_token_auth/install_views_generator.rb +16 -0
  52. data/lib/generators/devise_token_auth/templates/devise_token_auth.rb +48 -0
  53. data/lib/generators/devise_token_auth/templates/devise_token_auth_create_users.rb.erb +55 -0
  54. data/lib/generators/devise_token_auth/templates/user.rb +7 -0
  55. data/lib/tasks/devise_token_auth_tasks.rake +4 -0
  56. data/test/controllers/custom/custom_confirmations_controller_test.rb +21 -0
  57. data/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb +29 -0
  58. data/test/controllers/custom/custom_passwords_controller_test.rb +75 -0
  59. data/test/controllers/custom/custom_registrations_controller_test.rb +54 -0
  60. data/test/controllers/custom/custom_sessions_controller_test.rb +37 -0
  61. data/test/controllers/custom/custom_token_validations_controller_test.rb +40 -0
  62. data/test/controllers/demo_group_controller_test.rb +153 -0
  63. data/test/controllers/demo_mang_controller_test.rb +284 -0
  64. data/test/controllers/demo_user_controller_test.rb +601 -0
  65. data/test/controllers/devise_token_auth/confirmations_controller_test.rb +129 -0
  66. data/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb +371 -0
  67. data/test/controllers/devise_token_auth/passwords_controller_test.rb +649 -0
  68. data/test/controllers/devise_token_auth/registrations_controller_test.rb +878 -0
  69. data/test/controllers/devise_token_auth/sessions_controller_test.rb +500 -0
  70. data/test/controllers/devise_token_auth/token_validations_controller_test.rb +90 -0
  71. data/test/controllers/devise_token_auth/unlocks_controller_test.rb +194 -0
  72. data/test/controllers/overrides/confirmations_controller_test.rb +43 -0
  73. data/test/controllers/overrides/omniauth_callbacks_controller_test.rb +49 -0
  74. data/test/controllers/overrides/passwords_controller_test.rb +66 -0
  75. data/test/controllers/overrides/registrations_controller_test.rb +40 -0
  76. data/test/controllers/overrides/sessions_controller_test.rb +33 -0
  77. data/test/controllers/overrides/token_validations_controller_test.rb +41 -0
  78. data/test/dummy/README.rdoc +28 -0
  79. data/test/dummy/app/controllers/application_controller.rb +16 -0
  80. data/test/dummy/app/controllers/auth_origin_controller.rb +5 -0
  81. data/test/dummy/app/controllers/custom/confirmations_controller.rb +13 -0
  82. data/test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb +11 -0
  83. data/test/dummy/app/controllers/custom/passwords_controller.rb +40 -0
  84. data/test/dummy/app/controllers/custom/registrations_controller.rb +39 -0
  85. data/test/dummy/app/controllers/custom/sessions_controller.rb +29 -0
  86. data/test/dummy/app/controllers/custom/token_validations_controller.rb +19 -0
  87. data/test/dummy/app/controllers/demo_group_controller.rb +13 -0
  88. data/test/dummy/app/controllers/demo_mang_controller.rb +12 -0
  89. data/test/dummy/app/controllers/demo_user_controller.rb +25 -0
  90. data/test/dummy/app/controllers/overrides/confirmations_controller.rb +26 -0
  91. data/test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb +14 -0
  92. data/test/dummy/app/controllers/overrides/passwords_controller.rb +33 -0
  93. data/test/dummy/app/controllers/overrides/registrations_controller.rb +27 -0
  94. data/test/dummy/app/controllers/overrides/sessions_controller.rb +36 -0
  95. data/test/dummy/app/controllers/overrides/token_validations_controller.rb +23 -0
  96. data/test/dummy/app/helpers/application_helper.rb +1065 -0
  97. data/test/dummy/app/models/evil_user.rb +3 -0
  98. data/test/dummy/app/models/lockable_user.rb +5 -0
  99. data/test/dummy/app/models/mang.rb +3 -0
  100. data/test/dummy/app/models/nice_user.rb +7 -0
  101. data/test/dummy/app/models/only_email_user.rb +5 -0
  102. data/test/dummy/app/models/scoped_user.rb +7 -0
  103. data/test/dummy/app/models/unconfirmable_user.rb +8 -0
  104. data/test/dummy/app/models/unregisterable_user.rb +7 -0
  105. data/test/dummy/app/models/user.rb +18 -0
  106. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  107. data/test/dummy/config.ru +16 -0
  108. data/test/dummy/config/application.rb +24 -0
  109. data/test/dummy/config/application.yml.bk +0 -0
  110. data/test/dummy/config/boot.rb +5 -0
  111. data/test/dummy/config/environment.rb +5 -0
  112. data/test/dummy/config/environments/development.rb +44 -0
  113. data/test/dummy/config/environments/production.rb +82 -0
  114. data/test/dummy/config/environments/test.rb +48 -0
  115. data/test/dummy/config/initializers/assets.rb +8 -0
  116. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  117. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  118. data/test/dummy/config/initializers/devise.rb +3 -0
  119. data/test/dummy/config/initializers/devise_token_auth.rb +22 -0
  120. data/test/dummy/config/initializers/figaro.rb +1 -0
  121. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  122. data/test/dummy/config/initializers/inflections.rb +16 -0
  123. data/test/dummy/config/initializers/mime_types.rb +4 -0
  124. data/test/dummy/config/initializers/omniauth.rb +8 -0
  125. data/test/dummy/config/initializers/session_store.rb +3 -0
  126. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  127. data/test/dummy/config/routes.rb +72 -0
  128. data/test/dummy/config/spring.rb +1 -0
  129. data/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb +63 -0
  130. data/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb +62 -0
  131. data/test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb +6 -0
  132. data/test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb +5 -0
  133. data/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb +64 -0
  134. data/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb +60 -0
  135. data/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb +61 -0
  136. data/test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb +61 -0
  137. data/test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb +61 -0
  138. data/test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb +61 -0
  139. data/test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb +61 -0
  140. data/test/dummy/db/schema.rb +258 -0
  141. data/test/dummy/lib/migration_database_helper.rb +29 -0
  142. data/test/integration/navigation_test.rb +10 -0
  143. data/test/lib/devise_token_auth/url_test.rb +24 -0
  144. data/test/lib/generators/devise_token_auth/install_generator_test.rb +187 -0
  145. data/test/lib/generators/devise_token_auth/install_views_generator_test.rb +23 -0
  146. data/test/models/only_email_user_test.rb +35 -0
  147. data/test/models/user_test.rb +169 -0
  148. data/test/test_helper.rb +77 -0
  149. metadata +342 -0
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <script>
5
+ /*
6
+ The data is accessible in two ways:
7
+
8
+ 1. Using the postMessage api, this window will respond to a
9
+ 'message' event with a post of all the data. (This can
10
+ be used by browsers other than IE if this window was
11
+ opened with window.open())
12
+ 2. This window has a function called requestCredentials which,
13
+ when called, will return the data. (This can be
14
+ used if this window was opened in an inAppBrowser using
15
+ Cordova / PhoneGap)
16
+ */
17
+
18
+ var data = JSON.parse(decodeURIComponent('<%= URI::escape( @data.to_json ) %>'));
19
+
20
+ window.addEventListener("message", function(ev) {
21
+ if (ev.data === "requestCredentials") {
22
+ ev.source.postMessage(data, '*');
23
+ window.close();
24
+ }
25
+ });
26
+ function requestCredentials() {
27
+ return data;
28
+ }
29
+ setTimeout(function() {
30
+ document.getElementById('text').innerHTML = (data && data.error) || 'Redirecting...';
31
+ }, 1000);
32
+ </script>
33
+ </head>
34
+ <body>
35
+ <pre id="text">
36
+ </pre>
37
+ </body>
38
+ </html>
@@ -0,0 +1,196 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ # The secret key used by Devise. Devise uses this key to generate
5
+ # random tokens. Changing this key will render invalid all existing
6
+ # confirmation, reset password and unlock tokens in the database.
7
+ # config.secret_key = 'd029dbc7262359b4f9906ec029bae825981dee112d9a1425643719765c8fd4884f12a37add35607fa3fa2d6fa6945a0077d7fe0f10a67f8ee66d69e9cc6ac19b'
8
+
9
+ # ==> Mailer Configuration
10
+ # Configure the e-mail address which will be shown in Devise::Mailer,
11
+ # note that it will be overwritten if you use your own mailer class
12
+ # with default "from" parameter.
13
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
14
+
15
+ # Configure the class responsible to send e-mails.
16
+ # config.mailer = 'Devise::Mailer'
17
+
18
+ # ==> ORM configuration
19
+ # Load and configure the ORM. Supports :active_record (default) and
20
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
21
+ # available as additional gems.
22
+ require 'devise/orm/active_record'
23
+
24
+ # ==> Configuration for any authentication mechanism
25
+ # Configure which keys are used when authenticating a user. The default is
26
+ # just :email. You can configure it to use [:username, :subdomain], so for
27
+ # authenticating a user, both parameters are required. Remember that those
28
+ # parameters are used only when authenticating and not when retrieving from
29
+ # session. If you need permissions, you should implement that in a before filter.
30
+ # You can also supply a hash where the value is a boolean determining whether
31
+ # or not authentication should be aborted when the value is not present.
32
+ # config.authentication_keys = [ :email ]
33
+
34
+ # Configure parameters from the request object used for authentication. Each entry
35
+ # given should be a request method and it will automatically be passed to the
36
+ # find_for_authentication method and considered in your model lookup. For instance,
37
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
38
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
39
+ # config.request_keys = []
40
+
41
+ # Configure which authentication keys should be case-insensitive.
42
+ # These keys will be downcased upon creating or modifying a user and when used
43
+ # to authenticate or find a user. Default is :email.
44
+ config.case_insensitive_keys = [ :email ]
45
+
46
+ # Configure which authentication keys should have whitespace stripped.
47
+ # These keys will have whitespace before and after removed upon creating or
48
+ # modifying a user and when used to authenticate or find a user. Default is :email.
49
+ config.strip_whitespace_keys = [ :email ]
50
+
51
+ # Tell if authentication through request.params is enabled. True by default.
52
+ # It can be set to an array that will enable params authentication only for the
53
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
54
+ # enable it only for database (email + password) authentication.
55
+ # config.params_authenticatable = true
56
+
57
+ # Tell if authentication through HTTP Auth is enabled. False by default.
58
+ # It can be set to an array that will enable http authentication only for the
59
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
60
+ # enable it only for database authentication. The supported strategies are:
61
+ # :database = Support basic authentication with authentication key + password
62
+ # config.http_authenticatable = false
63
+
64
+ # If http headers should be returned for AJAX requests. True by default.
65
+ # config.http_authenticatable_on_xhr = true
66
+
67
+ # The realm used in Http Basic Authentication. 'Application' by default.
68
+ # config.http_authentication_realm = 'Application'
69
+
70
+ # It will change confirmation, password recovery and other workflows
71
+ # to behave the same regardless if the e-mail provided was right or wrong.
72
+ # Does not affect registerable.
73
+ # config.paranoid = true
74
+
75
+ # By default Devise will store the user in session. You can skip storage for
76
+ # particular strategies by setting this option.
77
+ # Notice that if you are skipping storage for all authentication paths, you
78
+ # may want to disable generating routes to Devise's sessions controller by
79
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
80
+ config.skip_session_storage = [:http_auth]
81
+
82
+ # By default, Devise cleans up the CSRF token on authentication to
83
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
84
+ # requests for sign in and sign up, you need to get a new CSRF token
85
+ # from the server. You can disable this option at your own risk.
86
+ # config.clean_up_csrf_token_on_authentication = true
87
+
88
+ # ==> Configuration for :database_authenticatable
89
+ # For bcrypt, this is the cost for hashing the password and defaults to 11. If
90
+ # using other algorithms, it sets how many times you want the password to be hashed.
91
+ #
92
+ # Limiting the stretches to just one in testing will increase the performance of
93
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
94
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
95
+ # algorithm), the cost increases exponentially with the number of stretches (e.g.
96
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
97
+ config.stretches = Rails.env.test? ? 1 : 11
98
+
99
+ # Setup a pepper to generate the encrypted password.
100
+ # config.pepper = '8ff086600aff82d68ff1e00d23c99c821e66652ec8c2a5b48f58de4a56b325cb532f6db660cf58fc5ecb473b9d851be8cd1badff0a1053bc9dc045f78b6e6772'
101
+
102
+ # ==> Configuration for :confirmable
103
+ # A period that the user is allowed to access the website even without
104
+ # confirming their account. For instance, if set to 2.days, the user will be
105
+ # able to access the website for two days without confirming their account,
106
+ # access will be blocked just in the third day. Default is 0.days, meaning
107
+ # the user cannot access the website without confirming their account.
108
+ # config.allow_unconfirmed_access_for = 2.days
109
+
110
+ # A period that the user is allowed to confirm their account before their
111
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
112
+ # their account within 3 days after the mail was sent, but on the fourth day
113
+ # their account can't be confirmed with the token any more.
114
+ # Default is nil, meaning there is no restriction on how long a user can take
115
+ # before confirming their account.
116
+ # config.confirm_within = 3.days
117
+
118
+ # If true, requires any email changes to be confirmed (exactly the same way as
119
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
120
+ # db field (see migrations). Until confirmed, new email is stored in
121
+ # unconfirmed_email column, and copied to email column on successful confirmation.
122
+ config.reconfirmable = true
123
+
124
+ # Defines which key will be used when confirming an account
125
+ # config.confirmation_keys = [ :email ]
126
+
127
+ # ==> Configuration for :rememberable
128
+ # The time the user will be remembered without asking for credentials again.
129
+ # config.remember_for = 2.weeks
130
+
131
+ # If true, extends the user's remember period when remembered via cookie.
132
+ # config.extend_remember_period = false
133
+
134
+ # Options to be passed to the created cookie. For instance, you can set
135
+ # secure: true in order to force SSL only cookies.
136
+ # config.rememberable_options = {}
137
+
138
+ # ==> Configuration for :validatable
139
+ # Range for password length.
140
+ config.password_length = 8..128
141
+
142
+ # Email regex used to validate email formats. It simply asserts that
143
+ # one (and only one) @ exists in the given string. This is mainly
144
+ # to give user feedback and not to assert the e-mail validity.
145
+ config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
146
+
147
+ # ==> Configuration for :timeoutable
148
+ # The time you want to timeout the user session without activity. After this
149
+ # time the user will be asked for credentials again. Default is 30 minutes.
150
+ # config.timeout_in = 30.minutes
151
+
152
+ # If true, expires auth token on session timeout.
153
+ # config.expire_auth_token_on_timeout = false
154
+
155
+ # ==> Configuration for :lockable
156
+ # Defines which strategy will be used to lock an account.
157
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
158
+ # :none = No lock strategy. You should handle locking by yourself.
159
+ # config.lock_strategy = :failed_attempts
160
+
161
+ # Defines which key will be used when locking and unlocking an account
162
+ # config.unlock_keys = [ :email ]
163
+
164
+ # Defines which strategy will be used to unlock an account.
165
+ # :email = Sends an unlock link to the user email
166
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
167
+ # :both = Enables both strategies
168
+ # :none = No unlock strategy. You should handle unlocking by yourself.
169
+ # config.unlock_strategy = :both
170
+
171
+ # Number of authentication tries before locking an account if lock_strategy
172
+ # is failed attempts.
173
+ # config.maximum_attempts = 20
174
+
175
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
176
+ # config.unlock_in = 1.hour
177
+
178
+ # Warn on the last attempt before the account is locked.
179
+ # config.last_attempt_warning = false
180
+
181
+ # ==> Configuration for :recoverable
182
+ #
183
+ # Defines which key will be used when recovering the password for an account
184
+ # config.reset_password_keys = [ :email ]
185
+
186
+ # Time interval you can reset your password with a reset password key.
187
+ # Don't put a too small interval or your users won't have the time to
188
+ # change their passwords.
189
+ config.reset_password_within = 6.hours
190
+
191
+ # The default HTTP method used to sign out a resource. Default is :delete.
192
+ config.sign_out_via = :delete
193
+
194
+ # don't serialize tokens
195
+ Devise::Models::Authenticatable::BLACKLIST_FOR_SERIALIZATION << :tokens
196
+ end
@@ -0,0 +1,50 @@
1
+ da-DK:
2
+ devise_token_auth:
3
+ sessions:
4
+ not_confirmed: "Der er sendt en bekræftelsesemail til din konto på '%{email}'. Følg venligst instruktionerne i emailen for at aktivere din konto."
5
+ bad_credentials: "Ugyldigt kombination af brugernavn og kodeord. Prøv venligst igen."
6
+ not_supported: "Brug POST /sign_in for at logge ind. GET er ikke supporteret."
7
+ user_not_found: "Brugeren er ikke fundet eller er ikke logget ind."
8
+ token_validations:
9
+ invalid: "Ugyldig legitimationsoplysninger."
10
+ registrations:
11
+ missing_confirm_success_url: "Der mangler et 'confirm_success_url' parameter."
12
+ redirect_url_not_allowed: "Omdirigering til '%{redirect_url}' er ikke tilladt."
13
+ email_already_exists: "Der eksisterer allerede en konto med '%{email}'"
14
+ account_with_uid_destroyed: "Kontoen med UID '%{uid}' er slettet."
15
+ account_to_destroy_not_found: "Kan ikke finde kontoen som skal slettes."
16
+ user_not_found: "Brugeren ikke fundet."
17
+ passwords:
18
+ missing_email: "Du skal udfylde email feltet."
19
+ missing_redirect_url: "Der er ingen omdirigeringsadresse."
20
+ redirect_url_not_allowed: "Omdirigering til '%{redirect_url}' er ikke tilladt."
21
+ sended: "En email er blevet sendt til '%{email}' med instruktioner for at nulstille dit kodeord."
22
+ user_not_found: "Kan ikke finde en bruger med '%{email}'."
23
+ password_not_required: "Denne bruger kræver ikke et kodeord. Log ind med '%{provider}' konto i stedet."
24
+ missing_passwords: "Du skal fylde alle felter ud som indeholder 'Password' og 'Password confirmation'."
25
+ successfully_updated: "Dit kodeord er opdateret."
26
+ unlocks:
27
+ missing_email: "Du skal udfylde en email."
28
+ sended: "En email er blevet sendt til '%{email}', som indeholder instruktioner for at låse kontoen op."
29
+ user_not_found: "Kan ikke finde en burger med email '%{email}'."
30
+ errors:
31
+ messages:
32
+ validate_sign_up_params: "Angiv venligst passende registeringsdata i request body."
33
+ validate_account_update_params: "Angiv venligst en passende konto opdatering i request body."
34
+ not_email: "er ikke en email"
35
+ devise:
36
+ mailer:
37
+ confirmation_instructions:
38
+ confirm_link_msg: "Du kan bekræfte din konto email for linket herunder:"
39
+ confirm_account_link: "Bekræft min konto"
40
+ reset_password_instructions:
41
+ request_reset_link_msg: "Der er nogle der har anmodet om et link til at ændre dit kodeord. Det kan du gøre gennem linket nedenfor."
42
+ password_change_link: "Ændre mit kodeord."
43
+ ignore_mail_msg: "Hvis du ikke anmodede om dette, ignorer venligst denne email."
44
+ no_changes_msg: "Din kodeord vil ikke ændres indtil du går ind på linket ovenfor og laver et nyt et."
45
+ unlock_instructions:
46
+ account_lock_msg: "Din konto er blevet låst fordi der er for mange forkerte log ind-forsøg."
47
+ unlock_link_msg: "Klik linket nedenfor, for at låse din konto op:"
48
+ unlock_link: "Lås min konto op"
49
+ hello: "hej"
50
+ welcome: "velkommen"
@@ -0,0 +1,49 @@
1
+ de:
2
+ devise_token_auth:
3
+ sessions:
4
+ not_confirmed: "Eine Bestätigungs-E-Mail wurde an Ihre Adresse '%{email}' gesendet. Sie müssen der Anleitung in der E-Mail folgen, um Ihren Account zu aktivieren."
5
+ bad_credentials: "Ungültige Anmeldeinformationen. Bitte versuchen Sie es erneut."
6
+ not_supported: "Verwenden Sie POST /sign_in zur Anmeldung. GET wird nicht unterstützt."
7
+ user_not_found: "Benutzer wurde nicht gefunden oder konnte nicht angemeldet werden."
8
+ token_validations:
9
+ invalid: "Ungültige Anmeldeinformationen"
10
+ registrations:
11
+ missing_confirm_success_url: "Fehlender Paramter 'confirm_success_url'."
12
+ redirect_url_not_allowed: "Weiterleitung zu '%{redirect_url}' ist nicht gestattet."
13
+ email_already_exists: "Es gibt bereits einen Account für '%{email}'."
14
+ account_with_uid_destroyed: "Account mit der uid '%{uid}' wurde gelöscht."
15
+ account_to_destroy_not_found: "Der zu löschende Account kann nicht gefunden werden."
16
+ user_not_found: "Benutzer kann nicht gefunden werden."
17
+ passwords:
18
+ missing_email: "Sie müssen eine E-Mail-Adresse angeben."
19
+ missing_redirect_url: "Es fehlt die URL zu Weiterleitung."
20
+ not_allowed_redirect_url: "Weiterleitung zu '%{redirect_url}' ist nicht gestattet."
21
+ sended: "Ein E-Mail mit der Anleitung zum Zurücksetzen Ihres Passwortes wurde an '%{email}' gesendet."
22
+ user_not_found: "Der Benutzer mit der E-Mail-Adresse '%{email}' kann nicht gefunden werden."
23
+ password_not_required: "Dieser Account benötigt kein Passwort. Melden Sie sich stattdessen über Ihren Account bei '%{provider}' an."
24
+ missing_passwords: "Sie müssen die Felder 'Passwort' und 'Passwortbestätigung' ausfüllen."
25
+ successfully_updated: "Ihr Passwort wurde erfolgreich aktualisiert."
26
+ errors:
27
+ messages:
28
+ validate_sign_up_params: "Bitte übermitteln sie vollständige Anmeldeinformationen im Body des Requests."
29
+ validate_account_update_params: "Bitte übermitteln sie vollständige Informationen zur Aktualisierung im Body des Requests."
30
+ not_email: "ist keine E-Mail-Adresse"
31
+ devise:
32
+ mailer:
33
+ confirmation_instructions:
34
+ subject: "Bestätigung Ihres Kontos"
35
+ confirm_link_msg: "Sie können Ihr Konto über den untenstehenden Link bestätigen:"
36
+ confirm_account_link: "Konto bestätigen"
37
+ reset_password_instructions:
38
+ subject: "Passwort zurücksetzen"
39
+ request_reset_link_msg: "Jemand hat einen Link zur Änderungen Ihres Passwortes angefordert. Sie können dies durch den folgenden Link tun:"
40
+ password_change_link: "Passwort ändern"
41
+ ignore_mail_msg: "Wenn Sie keine Änderung Ihres Passwortes angefordert haben, ignorieren Sie bitte diese E-Mail:"
42
+ no_changes_msg: "Ihr Passwort wird nicht geändert, bis Sie auf den obigen Link zugreifen und eine neues Passwort erstellen."
43
+ unlock_instructions:
44
+ subject: "Anweisungen zum Entsperren Ihres Kontos"
45
+ account_lock_msg: "Ihr Konto wurde aufgrund einer übermäßigen Anzahl von erfolglosen Anmeldeversuchen gesperrt."
46
+ unlock_link_msg: "Klicken Sie auf den Link unten, um Ihr Konto zu entsperren:"
47
+ unlock_link: "Entsperren Sie Ihr Konto"
48
+ hello: "hallo"
49
+ welcome: "willkommen"
@@ -0,0 +1,50 @@
1
+ en:
2
+ devise_token_auth:
3
+ sessions:
4
+ not_confirmed: "A confirmation email was sent to your account at '%{email}'. You must follow the instructions in the email before your account can be activated"
5
+ bad_credentials: "Invalid login credentials. Please try again."
6
+ not_supported: "Use POST /sign_in to sign in. GET is not supported."
7
+ user_not_found: "User was not found or was not logged in."
8
+ token_validations:
9
+ invalid: "Invalid login credentials"
10
+ registrations:
11
+ missing_confirm_success_url: "Missing 'confirm_success_url' parameter."
12
+ redirect_url_not_allowed: "Redirect to '%{redirect_url}' not allowed."
13
+ email_already_exists: "An account already exists for '%{email}'"
14
+ account_with_uid_destroyed: "Account with UID '%{uid}' has been destroyed."
15
+ account_to_destroy_not_found: "Unable to locate account for destruction."
16
+ user_not_found: "User not found."
17
+ passwords:
18
+ missing_email: "You must provide an email address."
19
+ missing_redirect_url: "Missing redirect URL."
20
+ not_allowed_redirect_url: "Redirect to '%{redirect_url}' not allowed."
21
+ sended: "An email has been sent to '%{email}' containing instructions for resetting your password."
22
+ user_not_found: "Unable to find user with email '%{email}'."
23
+ password_not_required: "This account does not require a password. Sign in using your '%{provider}' account instead."
24
+ missing_passwords: "You must fill out the fields labeled 'Password' and 'Password confirmation'."
25
+ successfully_updated: "Your password has been successfully updated."
26
+ unlocks:
27
+ missing_email: "You must provide an email address."
28
+ sended: "An email has been sent to '%{email}' containing instructions for unlocking your account."
29
+ user_not_found: "Unable to find user with email '%{email}'."
30
+ errors:
31
+ messages:
32
+ validate_sign_up_params: "Please submit proper sign up data in request body."
33
+ validate_account_update_params: "Please submit proper account update data in request body."
34
+ not_email: "is not an email"
35
+ devise:
36
+ mailer:
37
+ confirmation_instructions:
38
+ confirm_link_msg: "You can confirm your account email through the link below:"
39
+ confirm_account_link: "Confirm my account"
40
+ reset_password_instructions:
41
+ request_reset_link_msg: "Someone has requested a link to change your password. You can do this through the link below."
42
+ password_change_link: "Change my password"
43
+ ignore_mail_msg: "If you didn't request this, please ignore this email."
44
+ no_changes_msg: "Your password won't change until you access the link above and create a new one."
45
+ unlock_instructions:
46
+ account_lock_msg: "Your account has been locked due to an excessive number of unsuccessful sign in attempts."
47
+ unlock_link_msg: "Click the link below to unlock your account:"
48
+ unlock_link: "Unlock my account"
49
+ hello: "hello"
50
+ welcome: "welcome"
@@ -0,0 +1,49 @@
1
+ es:
2
+ devise_token_auth:
3
+ sessions:
4
+ not_confirmed: "Un correo electrónico de confirmación de su cuenta ha sido enviado a '%{email}'. Por favor, siga las instrucciones para validar su cuenta"
5
+ bad_credentials: "Identidad o contraseña no válida."
6
+ not_supported: "Use POST /sign_in para la conexión. GET no esta disponible."
7
+ user_not_found: "Usuario desconocido o no está conectado."
8
+ token_validations:
9
+ invalid: "Identidad o contraseña no válida."
10
+ registrations:
11
+ missing_confirm_success_url: "El parámetro 'confirm_success_url' no esta presente."
12
+ redirect_url_not_allowed: "Redirección hacia '%{redirect_url}' no esta permitida."
13
+ email_already_exists: "Una cuenta ya existe con este correo electrónico '%{email}'"
14
+ account_with_uid_destroyed: "La cuenta con el identificador '%{uid}' se ha eliminado."
15
+ account_to_destroy_not_found: "No se puede encontrar la cuenta a borrar."
16
+ user_not_found: "Usuario no encontrado."
17
+ passwords:
18
+ missing_email: "Debe incluir un correo electrónico."
19
+ missing_redirect_url: "Falta el Url de redirección."
20
+ not_allowed_redirect_url: "Redirección hacia '%{redirect_url}' no esta permitida."
21
+ sended: "Un correo electrónico ha sido enviado a '%{email}' con las instrucciones para restablecer su contraseña."
22
+ user_not_found: "No se pudo encontrar un usuario con este correo electrónico '%{email}'."
23
+ password_not_required: "Esta cuenta no requiere contraseña. Iniciar sesión utilizando '%{provider}'."
24
+ missing_passwords: "Debe llenar los campos 'Contraseña' y 'Confirmación de contraseña'."
25
+ successfully_updated: "Su contraseña ha sido actualizada con éxito."
26
+ errors:
27
+ messages:
28
+ validate_sign_up_params: "Los datos introducidos en la solicitud de acceso no son válidos."
29
+ validate_account_update_params: "Los datos introducidos en la solicitud de actualización no son válidos."
30
+ not_email: "no es un correo electrónico"
31
+ devise:
32
+ mailer:
33
+ confirmation_instructions:
34
+ subject: "Instrucciones de confirmación"
35
+ confirm_link_msg: "Para confirmar su cuenta ingrese en el siguiente link:"
36
+ confirm_account_link: "Confirmar cuenta"
37
+ reset_password_instructions:
38
+ subject: "Instrucciones para restablecer su contraseña"
39
+ request_reset_link_msg: "Ha solicitado un cambio de contraseña. Para continuar ingrese en el siguiente link:"
40
+ password_change_link: "Cambiar contraseña"
41
+ ignore_mail_msg: "Por favor ignore este mensaje si no ha solicitado esta acción."
42
+ no_changes_msg: "Importante: Su contraseña no será actualizada a menos que ingrese en el link."
43
+ unlock_instructions:
44
+ subject: "Instrucciones de desbloqueo"
45
+ account_lock_msg: "Su cuenta ha sido bloqueada debido a sucesivos intentos de ingresos fallidos"
46
+ unlock_link_msg: "Para desbloquear su cuenta ingrese en el siguiente link:"
47
+ unlock_link: "Desbloquear cuenta"
48
+ hello: "hola"
49
+ welcome: "bienvenido"
@@ -0,0 +1,49 @@
1
+ fr:
2
+ devise_token_auth:
3
+ sessions:
4
+ not_confirmed: "Un e-mail de confirmation de votre compte a été envoyé à '%{email}'. Merci de suivre les instructions afin de valider votre compte"
5
+ bad_credentials: "Mot de passe ou identifiant invalide."
6
+ not_supported: "Utilisez POST /sign_in pour la connexion. GET n'est pas supporté."
7
+ user_not_found: "L'utilisateur est inconnu ou n'est pas connecté."
8
+ token_validations:
9
+ invalid: "Mot de passe ou identifiant invalide."
10
+ registrations:
11
+ missing_confirm_success_url: "Le paramètre 'confirm_success_url' est manquant."
12
+ redirect_url_not_allowed: "Redirection vers '%{redirect_url}' n'est pas autorisée."
13
+ email_already_exists: "Un compte existe déjà avec l'adresse e-mail suivante '%{email}'"
14
+ account_with_uid_destroyed: "Le compte avec l'identifiant '%{uid}' a été supprimé."
15
+ account_to_destroy_not_found: "Le compte à supprimer est introuvable."
16
+ user_not_found: "Utilisateur introuvable."
17
+ passwords:
18
+ missing_email: "Vous devez soumettre un e-mail."
19
+ missing_redirect_url: "URL de redirection manquante."
20
+ not_allowed_redirect_url: "Redirection vers '%{redirect_url}' n'est pas autorisée."
21
+ sended: "Un e-mail a été envoyé à '%{email}' avec les instructions de réinitialisation du mot de passe."
22
+ user_not_found: "Impossible de trouver l'utilisateur avec l'adresse e-mail suivante '%{email}'."
23
+ password_not_required: "Ce compte ne demande pas de mot de passe. Connectez vous en utilisant '%{provider}'."
24
+ missing_passwords: "Vous devez remplir les champs 'Mot de passe' et 'Confirmation de mot de passe'."
25
+ successfully_updated: "Votre mot de passe a été correctement mis à jour."
26
+ errors:
27
+ messages:
28
+ validate_sign_up_params: "Les données d'inscription dans le corps de la requête ne sont pas valides."
29
+ validate_account_update_params: "Les données de mise à jour dans le corps de la requête ne sont pas valides."
30
+ not_email: "n'est pas une adresse e-mail"
31
+ devise:
32
+ mailer:
33
+ confirmation_instructions:
34
+ subject: "Instructions de confirmation"
35
+ confirm_link_msg: "Vous pouvez confirmer votre compte e-mail via le lien ci-dessous :"
36
+ confirm_account_link: "Confirmer mon compte"
37
+ reset_password_instructions:
38
+ subject: "Instructions de récupération de mot de passe"
39
+ request_reset_link_msg: "Quelqu'un a demandé un lien pour changer votre mot de passe. Pour procéder ainsi, suivez le lien ci-dessous."
40
+ password_change_link: "Changer mon mot de passe"
41
+ ignore_mail_msg: "Si vous n'avez pas demandé cela, veuillez ignorer cet e-mail."
42
+ no_changes_msg: "Votre mot de passe ne changera pas tant que vous n'accédez pas au lien ci-dessus pour en créer un nouveau."
43
+ unlock_instructions:
44
+ subject: "Instructions de déblocage"
45
+ account_lock_msg: "Votre compte a été bloqué en raison de nombreuses tentatives de connexion erronées."
46
+ unlock_link_msg: "Cliquez sur le lien ci-dessous pour déverrouiller votre compte:"
47
+ unlock_link: "Déverrouiller mon compte"
48
+ hello: "bonjour"
49
+ welcome: "bienvenue"