authem 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a905bf16ed174deb71848a2cf685265a4e72116a
4
- data.tar.gz: 8e729af1aa7f3e12e4d15be66c660f47b07ec1d0
3
+ metadata.gz: 4ab055d04dcac03a2274070a9d943c0b620ef7e6
4
+ data.tar.gz: 16d4f50e769a947afaac241902d96dfb05df21bd
5
5
  SHA512:
6
- metadata.gz: ab9c8dcca7d5cbcb1366a4f43b4477364d8562f5320e34fb32585f318542902953ef7e074a89e0a531fdc64838024e77d6c929d7834ad547312cca680f6ddee3
7
- data.tar.gz: 9fa3948903e7916772c9874ae1b4406f2c6eebef6ed555c42de045d85f72765457286dea58e3448f7e1b6fccbf5eb89d6d9abdbe620228528a4bd26ecf2395ae
6
+ metadata.gz: 80ad4b4c249a683e09b44989725526e800c888462c381b8b5368e0da5b5d9c1a6006bae73995adf60c2dbbb3cefb1d1011da0f1314e170e8f0043f4ea8cce6a5
7
+ data.tar.gz: 449edac32576e9daca22f3597798f94a534c6ee6a7db792814564d03d3fbab6254971f6d31feaa32080ac8e9a61dc8416f6849e44cf4b1d0d4af34a16243bb45
@@ -44,6 +44,10 @@ module Authem::BaseUser
44
44
  generate_token(:reset_password)
45
45
  end
46
46
 
47
+ def reset_session_token!
48
+ generate_token(:session)
49
+ end
50
+
47
51
  private
48
52
 
49
53
  def generate_token(type)
@@ -10,7 +10,9 @@ module Authem::ControllerSupport
10
10
 
11
11
  def sign_out
12
12
  cookies[:remember_token] = nil
13
+ session[:session_token] = nil
13
14
  reset_session
15
+ current_user.reset_session_token! if current_user
14
16
  @current_user = nil
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Authem
2
- VERSION = '1.3.2'
2
+ VERSION = '1.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Elliott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport