authentication-zero 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: 92112d3c18d8e744aa40aed7fef55a2d0297e90e1975c2dd8efbcd4197314cd7
4
- data.tar.gz: 7ec0f1e5283f8035bdcbcfe0d8d497a618158689fc7c85d550c96ec3324d5d48
3
+ metadata.gz: c60a566c4789323eb87ac9f024b732231815e76092b5187d608ddc6a21314427
4
+ data.tar.gz: fccefad83e73b9fe383949f756cf2ad363372472a7d5a362f5e04a99ea75fefa
5
5
  SHA512:
6
- metadata.gz: 8b0af8f623956d8cbd08046c2c30e2e3705542b975236585a8420d26d8b7fdb450ddea61abd2b6e67b675c677869126cebfc0c898b7c2d88cde869d0715c72cb
7
- data.tar.gz: 5015012ed105a8e4cf26f2a801dda0d91785a99bf45497964f1a806311a5ff822348afa1533209d8c847f2732bfa4d424e59e5854eabb2824a3b16f9b42b9696
6
+ metadata.gz: b4a4a9bf9a05f73b0fcc4862d763fb3a4880563fbec72a3f069d7b7e56dbc4dee3c8812823c2569d7e680a4c49b86e61465191cfbd0b24a2a121ba49ab61ec37
7
+ data.tar.gz: b73ed9438ecbb4a9afa463195ca88d735084853044c8d59b6f649157302aefa171ed0a6d421267c2acbe909cabe0993fdf3b81da3a68e5a654e2e82a99d1549c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Authentication Zero 3.0.2 ##
2
+
3
+ * Fix bug where token is not expired/invalid
4
+
1
5
  ## Authentication Zero 3.0.0 ##
2
6
 
3
7
  * Use the new normalizes API
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authentication-zero (3.0.1)
4
+ authentication-zero (3.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AuthenticationZero
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
@@ -1,8 +1,13 @@
1
1
  class User < ApplicationRecord
2
2
  has_secure_password
3
3
 
4
- generates_token_for :email_verification, expires_in: 2.days { email }
5
- generates_token_for :password_reset, expires_in: 20.minutes { password_salt.last(10) }
4
+ generates_token_for :email_verification, expires_in: 2.days do
5
+ email
6
+ end
7
+ generates_token_for :password_reset, expires_in: 20.minutes do
8
+ password_salt.last(10)
9
+ end
10
+
6
11
  <%- if options.tenantable? %>
7
12
  belongs_to :account
8
13
  <%- end -%>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentication-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-14 00:00:00.000000000 Z
11
+ date: 2023-10-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: