tkh_authentication 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGY1YmQ4NDAzZDJiMWMyNDI3NjE2MTVjMzBhYTQ3ODEwODZmYTVhOQ==
4
+ NWE4ZGRhZDcyZDgyMTIzMjE3YWM4NGU5Mzk2NzQ5N2JhZDJmNjJkOA==
5
5
  data.tar.gz: !binary |-
6
- MTdiNzk1YTJhNjk2NmYwNzhmNDNlM2IwYWViNGNkZjcyNTNhODljNw==
6
+ MGY4YThhOTkwMzUwODFlMTU1NjQ2M2FmOGUzZGQ0N2NmOGNmNjQ2MA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzYwMzgwMTI3YWM3ZWRhODRlOGZkMWY1N2RmOWM0NjFhZWEyMDE5ZDY3YTY3
10
- OTM3ZGVmMGZjZWZkZjlhM2I5Yjc1YzRiM2ZiMzdjZDIyYzVhYjYwM2MzYTAw
11
- OTc0MTQ0OTEzYzM0MGRkODY0MmUwNGU1OGQ1NDkyNTVlOTRiMTE=
9
+ ZTI2ODhlYjY1Yzk2YmM3ZGVkNmQ2OGM2ZjExNzJlYWNhOWNkZmFmYThmZmQ2
10
+ Y2JhNjI1NjA1OTI2ZjRhOTYyZDM1ZmFkMjBhZjg0NzU1NWQ1OWQ0NGZjOGUw
11
+ YTFmZWQyZjExNGVhZGMxNWM2MWJiZTlkOTJjM2U2NmE0ZTEyNjg=
12
12
  data.tar.gz: !binary |-
13
- ZTdkMjIzNjVkMmI5ZWExMTQxYmViZTQwOTkxOGRjNGMwMzNmYjRhYWUzODdi
14
- NjYzMzBmN2ZkZTZlYjdkZTE4YjBiMjExODI5YzQ2OTcxMDMwMWExNTM3MDYx
15
- M2RjZmM0MDM1ZjI3MjIzZDRkOWEzOGUyODM3ZjI4ZDk5ZjA3MTI=
13
+ NjZhMDlhNGJiOGY4MWEwNDgxYjUzZTg2NDM3YTNjOTVmZDI0ZWMyNDY2MTQz
14
+ YzZkMDIwMWM0MmM1MDkwYjA2MTQ3MThhODg4NTM2MmJjNGM3ZWQzNTY3NTc5
15
+ NWI4ZDkyOTNlOTRiZjVlZjE3NTU2NWNkYjMxNDJiZDEyYWFiNjI=
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # TKH Authentication
2
2
 
3
3
 
4
+
5
+ ## 0.1.9
6
+
7
+ * Change click flow for new users to sign up
8
+ * Signup and login routine are now aware of the tkh_mailing_list gem and its records
9
+ * Email address must be validated before creating an account
10
+
11
+
4
12
  ## 0.1.8
5
13
 
6
14
  * Added other name attribute to user model
@@ -1,5 +1,5 @@
1
1
  class PasswordResetsController < ApplicationController
2
-
2
+
3
3
  def create
4
4
  user = User.find_by_email(params[:email])
5
5
  if user
@@ -16,13 +16,14 @@ class PasswordResetsController < ApplicationController
16
16
 
17
17
  def update
18
18
  @user = User.find_by_password_reset_token!(params[:id])
19
- if @user.password_reset_sent_at < 24.hours.ago
19
+ if @user.password_reset_sent_at < 2.hours.ago
20
20
  redirect_to new_password_reset_path, :alert => t('authentication.warning.password_reset_expired')
21
21
  elsif @user.update_attributes(params[:user])
22
- redirect_to root_url, :notice => t('authentication.password_reset_confirmation')
22
+ cookies[:auth_token] = @user.auth_token # logging in the user
23
+ redirect_to session[:target_page] || safe_root_url, notice: t('authentication.password_reset_confirmation')
23
24
  else
24
25
  render :edit
25
26
  end
26
27
  end
27
28
 
28
- end
29
+ end
@@ -1,12 +1,13 @@
1
1
  class SessionsController < ApplicationController
2
2
 
3
3
  def new
4
+ set_target_page
4
5
  redirect_to root_path if current_user
5
6
  end
6
7
 
7
8
  def create
8
- user = User.find_by_email(params[:email])
9
9
  set_target_page
10
+ user = User.find_by_email(params[:email])
10
11
  if user && user.authenticate(params[:password])
11
12
  if params[:remember_me]
12
13
  cookies.permanent[:auth_token] = user.auth_token
@@ -25,9 +26,9 @@ class SessionsController < ApplicationController
25
26
  cookies.delete(:auth_token)
26
27
  redirect_to safe_root_url, notice: t('authentication.logout_confirmation')
27
28
  end
28
-
29
+
29
30
  private
30
-
31
+
31
32
  def set_target_page
32
33
  session[:target_page] = request.referer unless session[:target_page] # && !request.referer.nil?
33
34
  end
@@ -1,8 +1,8 @@
1
1
  class UsersController < ApplicationController
2
-
2
+
3
3
  before_filter :authenticate, only: 'index'
4
- before_filter :authenticate_with_admin, except: ['new', 'create']
5
-
4
+ before_filter :authenticate_with_admin, except: ['new', 'create', 'detect_existence']
5
+
6
6
  def index
7
7
  @users = User.by_recent
8
8
  render layout: 'admin'
@@ -23,25 +23,43 @@ class UsersController < ApplicationController
23
23
  render "new"
24
24
  end
25
25
  end
26
-
26
+
27
+ def detect_existence
28
+ set_target_page
29
+ user = User.where('email = ?', params[:user][:email]).first
30
+ if user && !user.password_digest.blank? && user.password != 'temporary'
31
+ flash[:notice] = "Our records show you have an account with us. Please login."
32
+ redirect_to login_path
33
+ else
34
+ if user
35
+ newbie = Newbie.where('email = ?', params[:user][:email]).first
36
+ else
37
+ newbie = Newbie.create(email: params[:user][:email])
38
+ end
39
+ newbie.send_password_set
40
+ flash[:notice] = "Our records show you do not have an account with us. We need to verify your email address. Please check your email inbox (or spam filter if you have nothing after several minutes) and click on the confirmation link."
41
+ redirect_to safe_root_url
42
+ end
43
+ end
44
+
27
45
  def make_admin
28
46
  user = User.find(params[:id])
29
47
  user.admin = true
30
48
  user.save
31
49
  redirect_to users_path, notice: t('authentication.admin_enabled_confirmation')
32
50
  end
33
-
51
+
34
52
  def remove_admin
35
53
  user = User.find(params[:id])
36
54
  user.admin = false
37
55
  user.save
38
56
  redirect_to users_path, notice: t('authentication.admin_disabled_confirmation')
39
57
  end
40
-
58
+
41
59
  private
42
-
60
+
43
61
  def set_target_page
44
62
  session[:target_page] = request.referer unless session[:target_page] # && !request.referer.nil?
45
63
  end
46
-
64
+
47
65
  end
@@ -1,5 +1,5 @@
1
1
  class UserMailer < ActionMailer::Base
2
-
2
+
3
3
  default :from => Setting.first.try(:contact_email) ? Setting.first.try(:contact_email) : 'info@tenthousandhours.eu'
4
4
 
5
5
  # Subject can be set in your I18n file at config/locales/en.yml
@@ -7,9 +7,14 @@ class UserMailer < ActionMailer::Base
7
7
  #
8
8
  # en.user_mailer.password_reset.subject
9
9
  #
10
- def password_reset(user)
10
+ def password_reset(user)
11
11
  @user = user
12
12
  mail :to => user.email, :subject => t('authentication.password_reset_email_subject') + ' | ' + Setting.first.try(:site_name)
13
13
  end
14
14
 
15
- end
15
+ def password_set(user)
16
+ @user = user
17
+ mail :to => user.email, :subject => t('authentication.email_validation_subject') + ' | ' + Setting.first.try(:site_name)
18
+ end
19
+
20
+ end
@@ -0,0 +1,12 @@
1
+ class Newbie < User
2
+
3
+ def send_password_set
4
+ generate_token(:password_reset_token)
5
+ self.password_reset_sent_at = Time.zone.now
6
+ # necessary to pass has_secure_password validations
7
+ self.password, self.password_confirmation = 'temporary', 'temporary'
8
+ save!
9
+ UserMailer.password_set(self).deliver
10
+ end
11
+
12
+ end
data/app/models/user.rb CHANGED
@@ -11,9 +11,11 @@ class User < ActiveRecord::Base
11
11
 
12
12
  validates_presence_of :email
13
13
  validates_uniqueness_of :email, :case_sensitive => false
14
- validates_presence_of :password, on: :create
15
- validates_presence_of :first_name
16
- validates_presence_of :last_name
14
+ # validates_presence_of :password, on: :create
15
+
16
+ # TODO - this needs to be somehow integrated in the click flow
17
+ # validates_presence_of :first_name
18
+ # validates_presence_of :last_name
17
19
 
18
20
  scope :alphabetically, order('last_name, first_name')
19
21
  scope :administrators, where('admin = ?', true)
@@ -35,6 +37,10 @@ class User < ActiveRecord::Base
35
37
  "#{last_name}, #{first_name}".strip
36
38
  end
37
39
 
40
+ def spiritual_name
41
+ @spiritual_name = other_name || first_name
42
+ end
43
+
38
44
  def send_password_reset
39
45
  generate_token(:password_reset_token)
40
46
  self.password_reset_sent_at = Time.zone.now
@@ -8,4 +8,7 @@
8
8
  <%= f.input :password_confirmation %>
9
9
  </div>
10
10
  <div class="actions"><%= f.submit t('authentication.update_password') %></div>
11
- <% end %>
11
+ <% end %>
12
+
13
+ <%# partial in tkh_menus gem or has to be added in host app %>
14
+ <%= render './shared/menus' %>
@@ -0,0 +1,4 @@
1
+ <div class="embedded-access-control">
2
+ <%= render 'users/detect_user_existence_form', user: (current_user || User.new) %>
3
+ </div>
4
+
@@ -0,0 +1 @@
1
+ <%= t 'authentication.email_validation_instructions', reset_url: edit_password_reset_url(@user.password_reset_token, locale: I18n.locale) %>
@@ -0,0 +1,11 @@
1
+ <%= simple_form_for user, url: detect_existence_users_path do |f| %>
2
+ <%= f.error_notification %>
3
+
4
+ <div class="form-inputs">
5
+ <%= f.input :email %>
6
+ </div>
7
+
8
+ <div class="form-actions">
9
+ <%= f.button :submit, value: 'proceed', :class => 'btn btn-primary' %>
10
+ </div>
11
+ <% end %>
@@ -5,6 +5,7 @@
5
5
  <%= f.input :email %>
6
6
  <%= f.input :first_name %>
7
7
  <%= f.input :last_name %>
8
+ <%= f.input :other_name %>
8
9
  <%= f.input :password %>
9
10
  <%= f.input :password_confirmation, required: true %>
10
11
  </div>
@@ -12,4 +13,4 @@
12
13
  <div class="form-actions">
13
14
  <%= f.button :submit, t('authentication.create_account'), :class => 'btn btn-primary' %>
14
15
  </div>
15
- <% end %>
16
+ <% end %>
data/config/routes.rb CHANGED
@@ -9,8 +9,9 @@ Rails.application.routes.draw do
9
9
  post :make_admin
10
10
  post :remove_admin
11
11
  end
12
+ collection { post :detect_existence }
12
13
  end
13
14
  resources :sessions
14
15
  resources :password_resets
15
16
  end
16
- end
17
+ end
@@ -1,10 +1,10 @@
1
1
  de:
2
-
2
+
3
3
  activerecord:
4
4
  models:
5
5
  user: 'Benutzer'
6
6
  users: 'Benutzer'
7
-
7
+
8
8
  attributes:
9
9
  user:
10
10
  admin: 'Administrator'
@@ -20,6 +20,8 @@ de:
20
20
  create_account: 'Nutzerkonto erstellen'
21
21
  disable_admin: 'löschen'
22
22
  enable_admin: 'erstellen'
23
+ email_validation_subject: "Email validation"
24
+ email_validation_instructions: "To confirm your email address, please visit this link: %{reset_url} and create your password \n\nIf you did not wish to create a new account with us, please ignore this email."
23
25
  forgot_password: "Kennwort vergessen?"
24
26
  login_confirmation: "Du bist eingelogged!"
25
27
  login_now: "einloggen"
@@ -46,5 +48,5 @@ de:
46
48
  email_or_password_invalid: "Email oder Kennwort ungültig"
47
49
  login_needed: "Du musst dich einloggen um auf diese Seite zuzugreifen. Du wurdest zum Login umgeleitet."
48
50
  no_such_email: "Es gibt kein Nutzerkonto mit dieser Email-Adresse."
49
- password_reset_expired: "Das Zurücksetzen des Kennworts ist abgelaufen. Dies war nur für 24 Stunden möglich"
51
+ password_reset_expired: "Das Zurücksetzen des Kennworts ist abgelaufen. Dies war nur für 2 Stunden möglich"
50
52
  restricted_access: "Diese Sektion ist nur für Administratoren zugänglich. Kontaktiere den Inhaber der Webseite, wenn du Administrator-Rechte erhalten möchtest."
@@ -1,10 +1,10 @@
1
1
  en:
2
-
2
+
3
3
  activerecord:
4
4
  models:
5
5
  user: 'user'
6
6
  users: 'users'
7
-
7
+
8
8
  attributes:
9
9
  user:
10
10
  admin: 'admin' # admin is short for administrator. put full word if necessary
@@ -19,7 +19,9 @@ en:
19
19
  admin_enabled_confirmation: 'you have empowered this user to be an administrator'
20
20
  create_account: 'create an account'
21
21
  disable_admin: 'disable'
22
- enable_admin: 'enable'
22
+ enable_admin: 'enable'
23
+ email_validation_subject: "Email validation"
24
+ email_validation_instructions: "To confirm your email address, please visit this link: %{reset_url} and create your password \n\nIf you did not wish to create a new account with us, please ignore this email."
23
25
  forgot_password: "forgot your password?"
24
26
  login_confirmation: "You have been logged in!"
25
27
  login_now: "log in"
@@ -46,33 +48,33 @@ en:
46
48
  email_or_password_invalid: "Email or password is invalid"
47
49
  login_needed: "You must be logged in to access this page. You have been redirected to the login form."
48
50
  no_such_email: "We do not have any accounts with the email you have provided."
49
- password_reset_expired: "Password reset has expired. There was a 24 hours grace period"
51
+ password_reset_expired: "Password reset has expired. There was a 2 hours grace period"
50
52
  restricted_access: "This section is reserved to the site's administrators. Contact the site owner if you would like access to be granted to you."
51
-
52
-
53
+
54
+
53
55
  # leaving these until I have used up all the ones I need.
54
- access_control:
55
- already_signed_up_message: "You already have a La Source account. Please login to your existing account."
56
+ access_control:
57
+ already_signed_up_message: "You already have a La Source account. Please login to your existing account."
56
58
  email_hint: This address will be used as your login id
57
59
  email_must_be_valid: Please enter a valid email address before submitting
58
-
59
-
60
+
61
+
60
62
  have_an_account: 'have an account?'
61
63
  hello: hello
62
64
  hello_name: "Hi %{name},"
63
65
  invalid_email_or_password: "Invalid email or password. Please double check your data, modify it, and resubmit the form"
64
66
  login: "log in"
65
-
66
-
67
+
68
+
67
69
  login_now_in_text: log in here
68
-
69
-
70
+
71
+
70
72
  my_profile: 'my profile'
71
73
  new_password: New Password
72
74
  new_password_confirmation: New Password confirmation
73
75
 
74
76
  not_authorized_alert: "You are not authorized to access this page. You have been redirected to the home page."
75
-
77
+
76
78
  or: "or"
77
79
  password: password
78
80
  password_confirmation: password confirmation
@@ -84,10 +86,10 @@ en:
84
86
  phone_entry_request: "If enrolling in a course, we would appreciate at least one phone number."
85
87
  please_log_in: Please log in to see your personal information.
86
88
  remember_me: "stay logged in"
87
-
88
-
89
+
90
+
89
91
  signup: "create an account"
90
-
92
+
91
93
  signup_now: "create an account"
92
94
 
93
- valid_email_needed: 'Please enter a valid email address'
95
+ valid_email_needed: 'Please enter a valid email address'
@@ -1,10 +1,10 @@
1
1
  es:
2
-
2
+
3
3
  activerecord:
4
4
  models:
5
5
  user: 'user'
6
6
  users: 'users'
7
-
7
+
8
8
  attributes:
9
9
  user:
10
10
  first_name: "nombre de pila"
@@ -12,13 +12,15 @@ es:
12
12
  email: "email"
13
13
  password: 'contraseña'
14
14
  password_confirmation: 'confirmar contraseña'
15
-
15
+
16
16
  authentication:
17
17
  admin_disabled_confirmation: "Este usuario no es un administrador"
18
18
  admin_enabled_confirmation: 'Este usuario es ahora un administrador'
19
19
  create_account: 'crea tu cuenta'
20
20
  disable_admin: 'eliminar el poder'
21
21
  enable_admin: 'autorizar'
22
+ email_validation_subject: "Email validation"
23
+ email_validation_instructions: "To confirm your email address, please visit this link: %{reset_url} and create your password \n\nIf you did not wish to create a new account with us, please ignore this email."
22
24
  forgot_password: '¿olvidaste tu contraseña?'
23
25
  login_confirmation: 'Conectado con éxito'
24
26
  login_now: "conectar"
@@ -45,5 +47,5 @@ es:
45
47
  email_or_password_invalid: 'Correo electrónico o contraseña no válidos'
46
48
  login_needed: 'Tienes que estar conectado para acceder a esta pagina. Te redirijimos al formulario para conectar.'
47
49
  no_such_email: 'No existe ninguna cuenta con el correo electronico que nos has proporcionado.'
48
- password_reset_expired: 'El reestablecimiento de la contraseña ha caducado. Tienes 24 horas para intentarlo otra vez.'
49
- restricted_access: "Esta parte del sitio está reservado para los administradores. Por favor, pedir permiso al propietario del sitio."
50
+ password_reset_expired: 'El reestablecimiento de la contraseña ha caducado. Tienes 2 horas para intentarlo otra vez.'
51
+ restricted_access: "Esta parte del sitio está reservado para los administradores. Por favor, pedir permiso al propietario del sitio."
@@ -1,10 +1,10 @@
1
1
  fr:
2
-
2
+
3
3
  activerecord:
4
4
  models:
5
5
  user: 'utilisateur'
6
6
  users: 'les utilisateurs'
7
-
7
+
8
8
  attributes:
9
9
  user:
10
10
  admin: 'administrateur' # admin is short for administrator. put full word if necessary
@@ -13,13 +13,15 @@ fr:
13
13
  email: "courriel"
14
14
  password: 'mot de passe'
15
15
  password_confirmation: 'confirmation de mot de passe'
16
-
16
+
17
17
  authentication:
18
18
  admin_disabled_confirmation: "cet utilisateur n'est plus un administrateur"
19
19
  admin_enabled_confirmation: 'cet utilisateur est maintenant un administrateur'
20
20
  create_account: 'créez un compte'
21
21
  disable_admin: 'enlever le pouvoir'
22
22
  enable_admin: 'donner le pouvoir'
23
+ email_validation_subject: "Vérification de votre adresse email"
24
+ email_validation_instructions: "Pour confirmer votre adresse email, veuillez accéder cette page web et créer un mot de passe : %{reset_url}\n\nSi vous ne désirez pas créer un compte sur notre site, veuillez ignorer cet email."
23
25
  forgot_password: "avez vous oublié votre mot de passe ?"
24
26
  login_confirmation: "Merci de vous être identifié !"
25
27
  login_now: "identifiez-vous"
@@ -47,40 +49,40 @@ fr:
47
49
  no_such_email: "Désolé nous n'avons pas d'utilisateur avec cette adresse email"
48
50
  password_reset_expired: "Votre mot de passe n'a pu être réinitialisé car votre demande date de plus de 24 heures."
49
51
  restricted_access: "Cette partie du site est réservée aux administrateurs. Veuillez demander l'autorisation au propriétaire du site."
50
-
51
-
52
-
52
+
53
+
54
+
53
55
  # leaving these until I have used up all the ones I need.
54
- access_control:
56
+ access_control:
55
57
  already_signed_up_message: "Vous avez déjà un compte La Source. Veuillez vous identifier avec ce compte existant."
56
-
58
+
57
59
  email_hint: Cette adresse sera votre identifiant
58
60
  email_must_be_valid: Vous devez entrer une adresse courriel avant d'envoyer votre demande
59
61
 
60
-
62
+
61
63
  have_an_account: 'vous avez un compte ?'
62
64
  hello: bonjour
63
65
  hello_name: "Bonjour %{name} ,"
64
66
  invalid_email_or_password: "Erreur d'email ou de mot de passe. Veuillez vérifier vos données, les corriger et essayer à nouveau."
65
67
  login: "s'identifier"
66
-
67
-
68
+
69
+
68
70
  login_now_in_text: vous identifier
69
71
 
70
-
72
+
71
73
  my_profile: 'mon profil'
72
74
  new_password: Nouveau mot de passe
73
75
  new_password_confirmation: Confirmation du nouveau mot de passe
74
-
76
+
75
77
  not_authorized_alert: "Vous n'avez pas l'autorization d'acceder cette page. Vous avez été redirigé sur la page d'accueil."
76
-
78
+
77
79
  or: ou
78
80
  password: mot de passe
79
81
  password_confirmation: confirmation du mot de passe
80
82
 
81
-
83
+
82
84
  password_must_match_confirmation: 'Le mot de passe et sa confirmation doivent être identiques'
83
- password_on_its_way: "Nous avons crée votre nouveau mot de passe et vous devriez le recevoir dans les 24 heures qui suivent à cette adresse : %{email_address}."
85
+ password_on_its_way: "Nous avons crée votre nouveau mot de passe et vous devriez le recevoir dans les 2 heures qui suivent à cette adresse : %{email_address}."
84
86
  password_reset: Réinitialisation du mot de passe
85
87
  please_log_in: Veuillez vous identifier pour voir votre information personnalisée.
86
88
  phone_entry_request: "Si vous joignez un cours, nous vous serions reconnaissant de nous fournir au moins un numéro de téléphone."
@@ -88,7 +90,7 @@ fr:
88
90
  reset_instructions: "Pour réinitialiser votre mot de passe, cliquez sur le lien en-dessous :"
89
91
  reset_instructions2: "Si vous n’avez pas demandé la réinitialisation de votre mot de passe, veuillez ignorer ce courriel. Votre mot de passe restera le même."
90
92
  signup: "créer un compte"
91
-
93
+
92
94
  signup_now: "créez un compte"
93
-
94
- valid_email_needed: 'Veuillez nous fournir votre adresse email'
95
+
96
+ valid_email_needed: 'Veuillez nous fournir votre adresse email'
@@ -1,10 +1,10 @@
1
1
  it:
2
-
2
+
3
3
  activerecord:
4
4
  models:
5
5
  user: 'user'
6
6
  users: 'users'
7
-
7
+
8
8
  attributes:
9
9
  user:
10
10
  first_name: "first name"
@@ -18,7 +18,9 @@ it:
18
18
  admin_enabled_confirmation: 'you have empowered this user to be an administrator'
19
19
  create_account: 'create an account'
20
20
  disable_admin: 'disable'
21
- enable_admin: 'enable'
21
+ enable_admin: 'enable'
22
+ email_validation_subject: "Email validation"
23
+ email_validation_instructions: "To confirm your email address, please visit this link: %{reset_url} and create your password \n\nIf you did not wish to create a new account with us, please ignore this email."
22
24
  forgot_password: "forgot your password?"
23
25
  login_confirmation: "You have been logged in!"
24
26
  login_now: "log in"
@@ -45,6 +47,6 @@ it:
45
47
  email_or_password_invalid: "Email or password is invalid"
46
48
  login_needed: "You must be logged in to access this page. You have been redirected to the login form."
47
49
  no_such_email: "We do not have any accounts with the email you have provided."
48
- password_reset_expired: "Password reset has expired. There was a 24 hours grace period"
50
+ password_reset_expired: "Password reset has expired. There was a 2 hours grace period"
49
51
  restricted_access: "This section is reserved to the site's administrators. Contact the site owner if you would like access to be granted to you."
50
-
52
+
@@ -1,3 +1,3 @@
1
1
  module TkhAuthentication
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-02 00:00:00.000000000 Z
11
+ date: 2013-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -92,16 +92,20 @@ files:
92
92
  - app/controllers/sessions_controller.rb
93
93
  - app/controllers/users_controller.rb
94
94
  - app/mailers/user_mailer.rb
95
+ - app/models/newbie.rb
95
96
  - app/models/user.rb
96
97
  - app/views/password_resets/edit.html.erb
97
98
  - app/views/password_resets/new.html.erb
98
99
  - app/views/sessions/_form.html.erb
99
100
  - app/views/sessions/new.html.erb
101
+ - app/views/shared/_embedded_access_control.html.erb
100
102
  - app/views/shared/_embedded_login_module.html.erb
101
103
  - app/views/shared/_login_info.html.erb
102
104
  - app/views/shared/_login_info_for_navbar.html.erb
103
105
  - app/views/shared/_login_info_for_sidebar.html.erb
104
106
  - app/views/user_mailer/password_reset.text.erb
107
+ - app/views/user_mailer/password_set.text.erb
108
+ - app/views/users/_detect_user_existence_form.html.erb
105
109
  - app/views/users/_form.html.erb
106
110
  - app/views/users/index.html.erb
107
111
  - app/views/users/new.html.erb