tkh_authentication 0.9.16 → 0.9.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11376618dade27c56c4fc52395046214280b2fce
4
- data.tar.gz: 503a1b59ac712e0227f174f0a1f5002d864779f2
3
+ metadata.gz: 72d93c4e9e476e85d8945e1b22b082b742f8e0c3
4
+ data.tar.gz: 3c99db270086cb1c1019cbc5f98132777a3a40f1
5
5
  SHA512:
6
- metadata.gz: 5782bda9f68d8c440994e86b317fc4b991183ee68995748a111f7d6cbc7b450a5bb6a29b4e1b54a3731b679af5a85a0b0e2b62234564e0eadcac1936b829ef2e
7
- data.tar.gz: 8a472c49ae3aab91abb62aa91ad4e9835e6052a116ffd55fb6c249894d0d5e71bbe902f50e2086c291814bbce7d057879c2018ec5bc93382284dc66f1b08170d
6
+ metadata.gz: e045408f51fe4615a58f28be5a7c942c8bdbe7780c846e95d83a818b9c29deb41465fd49f592ee9e169129da8874c50db450c4ee81d433e80027099827822085
7
+ data.tar.gz: b94e212f23a7600f57217ce671a247bb620f179b4cfe43b3bc06e6f5d389321d317b04b1677bc6224f646ecaa8b7b92cf8f233a0725fbe660943e9e94fc3978c
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.17
6
+
7
+ * Debugged the redirect_to :back when there is no referer.
8
+
9
+
5
10
  ## 0.9.16
6
11
 
7
12
  * Loosened up dependency versioning.
@@ -109,10 +109,10 @@ class ReceptionController < ApplicationController
109
109
  redirect_to email_input_path, alert: 'Sorry, your password_creation_token has expired. To protect your privacy and ensure your security, we need to ask you to start the process over again. The token, when created, expires after 1 hour!'
110
110
  end
111
111
  else # password is blank or password and password_confirmation don't match
112
- redirect_to :back, alert: 'Your password cannot be blank and the password should be identical to the password confirmation. Please try again.'
112
+ redirect_to_back_or_root, alert: 'Your password cannot be blank and the password should be identical to the password confirmation. Please try again.'
113
113
  end
114
114
  else # @user is blank
115
- redirect_to email_input_path, alert: 'We could not find this user record in our database. Please start the process over.'
115
+ ( request.env["HTTP_REFERER"].present? ? redirect_to(:back) : redirect_to(root_path ), alert: 'We could not find this user record in our database. Please start the process over.'
116
116
  end
117
117
  end
118
118
 
@@ -1,3 +1,3 @@
1
1
  module TkhAuthentication
2
- VERSION = "0.9.16"
2
+ VERSION = "0.9.17"
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.9.16
4
+ version: 0.9.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails