thecore 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/user.rb +7 -2
- data/lib/thecore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d7ac73f11dc87b34dd6096aea3a934064583105
|
4
|
+
data.tar.gz: 6900ef76ce2cbef6f56cbb2a618d2c377c054447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc66e15eb631c9d0342ad307c926859813dc2d01306ef4c272e02cca703ce1cd162cd509eb94512169927391265ae088a5a5fc4a4bf62d7ae9593468f87a9b00
|
7
|
+
data.tar.gz: bfe7e2618589cd09747f8e22558ad4b0ef3ec1fb740bed8705e06dddbd700705b7310c816e69bb3a231098b6949aa5bb80cc8fafae3fcd3218dd9e1aee859f7a
|
data/app/models/user.rb
CHANGED
@@ -2,7 +2,7 @@ class User < ApplicationRecord
|
|
2
2
|
include RailsAdmin
|
3
3
|
# # include default devise modules. Others available are:
|
4
4
|
# :confirmable, :lockable, :timeoutable and :omniauthable
|
5
|
-
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable #, :confirmable
|
5
|
+
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :timeoutable #, :confirmable
|
6
6
|
|
7
7
|
before_create :generate_authentication_token
|
8
8
|
|
@@ -51,7 +51,12 @@ class User < ApplicationRecord
|
|
51
51
|
def self.users_count
|
52
52
|
where(admin: false, locked: false).count
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
|
+
def timeout_in
|
56
|
+
return 30.minutes if admin?
|
57
|
+
1.day
|
58
|
+
end
|
59
|
+
|
55
60
|
def title
|
56
61
|
username
|
57
62
|
end
|
data/lib/thecore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|