thecore_auth_commons 3.0.6 → 3.0.7
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 +1 -4
- data/config/initializers/after_initialize.rb +2 -2
- data/db/migrate/20160208110805_devise_create_users.rb +3 -3
- data/db/seeds.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cd52f88583bd526c64a26eafe79e9f246766714f8d48b28a894ba885cc7d22a
|
4
|
+
data.tar.gz: 90003d281f2247e26b922b7fa8bfb8d8d63dc03e44c6151646ae6d172af8fabf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5565d62ec1ea44e874757af506cdeedf81d129cc8638442ede6171994f6d6bdc999131080d75f10c7a41cbf5d23914d3917e2dc88f826d13cfb0f60fc1ff5321
|
7
|
+
data.tar.gz: 84a0577201c562fd5112db9a04085d3eca695718b5738ca3b0d635c1a9f77a73aff7658b8fdcb3e0a38120f377859cc9fcc252370198714b06220b1a0ef2ba66
|
data/app/models/user.rb
CHANGED
@@ -1,6 +1,3 @@
|
|
1
1
|
class User < ApplicationRecord
|
2
|
-
|
3
|
-
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
4
|
-
devise :database_authenticatable, :registerable,
|
5
|
-
:recoverable, :rememberable, :validatable
|
2
|
+
devise :database_authenticatable, :rememberable, :validatable
|
6
3
|
end
|
@@ -6,7 +6,7 @@ Rails.application.configure do
|
|
6
6
|
|
7
7
|
Ability.send(:include, ThecoreAuthCommonsCanCanCanConcern)
|
8
8
|
User.send(:include, ThecoreAuthCommonsUserConcern)
|
9
|
-
User.devise_modules.delete(:recoverable) if ThecoreSettings::Setting.where(ns: :devise, key: :recoverable).first.present? && ThecoreSettings::Setting.where(ns: :devise, key: :recoverable).first.raw == "disable"
|
10
|
-
User.devise_modules.delete(:registerable) if ThecoreSettings::Setting.where(ns: :devise, key: :registerable).first.present? && ThecoreSettings::Setting.where(ns: :devise, key: :registerable).first.raw == "disable"
|
9
|
+
# User.devise_modules.delete(:recoverable) if ThecoreSettings::Setting.where(ns: :devise, key: :recoverable).first.present? && ThecoreSettings::Setting.where(ns: :devise, key: :recoverable).first.raw == "disable"
|
10
|
+
# User.devise_modules.delete(:registerable) if ThecoreSettings::Setting.where(ns: :devise, key: :registerable).first.present? && ThecoreSettings::Setting.where(ns: :devise, key: :registerable).first.raw == "disable"
|
11
11
|
end
|
12
12
|
end
|
@@ -8,8 +8,8 @@ class DeviseCreateUsers < ActiveRecord::Migration[7.0]
|
|
8
8
|
t.string :encrypted_password, null: false, default: ""
|
9
9
|
|
10
10
|
## Recoverable
|
11
|
-
t.string :reset_password_token
|
12
|
-
t.datetime :reset_password_sent_at
|
11
|
+
# t.string :reset_password_token
|
12
|
+
# t.datetime :reset_password_sent_at
|
13
13
|
|
14
14
|
## Rememberable
|
15
15
|
t.datetime :remember_created_at
|
@@ -37,7 +37,7 @@ class DeviseCreateUsers < ActiveRecord::Migration[7.0]
|
|
37
37
|
end
|
38
38
|
|
39
39
|
add_index :users, :email, unique: true, if_not_exists: true
|
40
|
-
add_index :users, :reset_password_token, unique: true, if_not_exists: true
|
40
|
+
# add_index :users, :reset_password_token, unique: true, if_not_exists: true
|
41
41
|
# add_index :users, :confirmation_token, unique: true
|
42
42
|
# add_index :users, :unlock_token, unique: true
|
43
43
|
end
|
data/db/seeds.rb
CHANGED