tkh_authentication 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.0.2
6
+
7
+ * Populated all Spanish translations
8
+
9
+
5
10
  ## 0.0.1
6
11
 
7
12
  * Initial release
@@ -14,7 +14,7 @@ class UsersController < ApplicationController
14
14
  def create
15
15
  @user = User.new(params[:user])
16
16
  if @user.save
17
- session[:user_id] = @user.id
17
+ cookies[:auth_token] = @user.auth_token
18
18
  redirect_to root_url, notice: t('authentication.signup_confirmation')
19
19
  else
20
20
  render "new"
@@ -1,22 +1,32 @@
1
1
  es:
2
2
  language_name: "Español"
3
+
4
+ activerecord:
5
+ attributes:
6
+ user:
7
+ first_name: "nombre de pila"
8
+ last_name: "apellido"
9
+ email: "email"
10
+ password: 'contraseña'
11
+ password_confirmation: 'confirmar contraseña'
12
+
3
13
  authentication:
4
- create_account: 'create your account'
5
- forgot_password: "forgot your password?_es"
6
- login_confirmation: "You have been logged in!"
7
- login_now: "log in"
8
- logout: "log out"
9
- logout_confirmation: "You have been logged out!"
10
- not_registered: "you don't have an account yet?"
11
- password_reset_confirmation: "Your password has been successfully reset!"
12
- password_reset_email_subject: "Password reset"
13
- reset_instructions: "To reset your password, click or visit this link: %{reset_url} \n\nIf you did not request your password to be reset, please ignore this email. Your password will stay as it is."
14
- reset_password_email_sent_confirmation: "We have emailed you a link to reset your password."
15
- reset_your_password: "Reset Password"
16
- signup_confirmation: "Your account has been created and you have been logged in!"
17
- update_password: "Update Password"
14
+ create_account: 'crea tu cuenta'
15
+ forgot_password: '¿olvidaste tu contraseña?'
16
+ login_confirmation: 'Conectado con éxito'
17
+ login_now: "conectar"
18
+ logout: "salir"
19
+ logout_confirmation: 'Se ha cerrado la sesión'
20
+ not_registered: 'no tienes una cuenta todavía'
21
+ password_reset_confirmation: 'Tu contraseña se ha restablecido correctamente.'
22
+ password_reset_email_subject: 'Restablecimiento de contraseña.'
23
+ reset_instructions: "Para restablecer tu contraseña click o visita este enlace: %{reset_url} \n\n si no has pedido que se reestablezca tu contraseña, por favor ignora este e-mail. Tu contraseña seguirá igual."
24
+ reset_password_email_sent_confirmation: 'Te hemos enviado un enlace para reestablecer tu contraseña.'
25
+ reset_your_password: 'Restablece tu contraseña.'
26
+ signup_confirmation: 'Hemos creado tu cuenta y ya estas conectado.'
27
+ update_password: 'Actualiza tu contraseña.'
18
28
  warning:
19
- email_or_password_invalid: "Email or password is invalid"
20
- login_needed: "You must be logged in to access this page. You have been redirected to the log in form."
21
- no_such_email: "We do not have any accounts with the email you have provided."
22
- password_reset_expired: "Password reset has expired. There was a 24 hours grace period"
29
+ email_or_password_invalid: 'Correo electrónico o contraseña no válidos'
30
+ login_needed: 'Tienes que estar conectado para acceder a esta pagina. Te redirijimos al formulario para conectar.'
31
+ no_such_email: 'No existe ninguna cuenta con el correo electronico que nos has proporcionado.'
32
+ password_reset_expired: 'El reestablecimiento de la contraseña ha caducado. Tienes 24 horas para intentarlo otra vez.'
@@ -1,3 +1,3 @@
1
1
  module TkhAuthentication
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-29 00:00:00.000000000 Z
12
+ date: 2012-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: 1934259845047733897
173
+ hash: 2192930084829117030
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  none: false
176
176
  requirements:
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: 1934259845047733897
182
+ hash: 2192930084829117030
183
183
  requirements: []
184
184
  rubyforge_project:
185
185
  rubygems_version: 1.8.23