arkaan 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/authentication/session.rb +0 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2acc7fc7df77c24cb6429078f5697a8862e0d5e7
|
4
|
+
data.tar.gz: c9af65e7b6da63161f0e0513b4b5fb773b23612f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 747c280b255a24557c1477673f4472cc4bafd90b1e83459885e56989527101df5ac608dfe6357d316ac870a2f220a3b772cca6355c018600e811ec6e5248d5bb
|
7
|
+
data.tar.gz: 5f8f4b058a40fe18ca92c83084bb2129299320b0fee3778de102a95067d110af3dea6ca00e4bba126c8ad6ca11bf2b5859f2095c8b8c0f4b481663d9d9ebb8f9
|
@@ -11,9 +11,6 @@ module Arkaan
|
|
11
11
|
# @!attribute [rw] token
|
12
12
|
# @return [String] the unique token for this session, used to identify it and be sure the user is connected on this application.
|
13
13
|
field :token, type: String
|
14
|
-
# @!attribute [rw] expiration
|
15
|
-
# @return [Integer] the time of expiration of the session, in seconds.
|
16
|
-
field :expiration, type: Integer, default: 0
|
17
14
|
|
18
15
|
# @!attribute [rw] account
|
19
16
|
# @return [Arkaan::Account] the account connected to the application.
|
@@ -23,9 +20,6 @@ module Arkaan
|
|
23
20
|
presence: {message: 'session.token.blank'},
|
24
21
|
uniqueness: {message: 'session.token.uniq', if: :token?},
|
25
22
|
length: {minimum: 10, message: 'session.token.short', if: :token?}
|
26
|
-
|
27
|
-
validates :expiration,
|
28
|
-
presence: {message: 'session.expiration.blank'}
|
29
23
|
end
|
30
24
|
end
|
31
25
|
end
|