phcdevworks_accounts 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/phcdevworks_accounts/account/dashboard_controller.rb +6 -6
- data/app/controllers/phcdevworks_accounts/application_controller.rb +17 -17
- data/app/helpers/phcdevworks_accounts/application_helper.rb +2 -2
- data/app/views/layouts/phcdevworks_accounts/components/backend/footer/_footer.html.erb +1 -2
- data/app/views/layouts/phcdevworks_accounts/components/backend/navigation/_top_menu.html.erb +1 -1
- data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/phcdevworks_accounts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82bb61ee080fe523381201e30431473d97d4fc51ff5befc6fd1a0cc8f81ac5e
|
4
|
+
data.tar.gz: 4d6d773cf1e3101da970ec3b63650d0585913e09ad9c7dd488c7f3e1107d107a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9e576364928c0e8713635f2d986cde3ca780aa6b925dfec8bdf1ff8411864d6ddfd3b70967f354b425c8d87d49e7912df2583d8f9195e23ebacb63d0d0f8c65
|
7
|
+
data.tar.gz: a60295a687133dbc3a9af33da3f8c59687b77130b5c0532158e4e205a1fccecae23bd726bbf24c74aafbf305e74e1eebc96e58e72505df5ec069e76398f34488
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require_dependency "phcdevworks_accounts/application_controller"
|
2
2
|
|
3
3
|
module PhcdevworksAccounts
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
class Account::DashboardController < ApplicationController
|
5
|
+
|
6
|
+
# Dashboard
|
7
|
+
def index
|
8
|
+
end
|
9
|
+
|
8
10
|
end
|
9
|
-
|
10
|
-
end
|
11
11
|
end
|
@@ -1,25 +1,25 @@
|
|
1
1
|
module PhcdevworksAccounts
|
2
|
-
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
|
4
|
+
# Devise Filter
|
5
|
+
before_action :phcdevworks_accounts_permitted_parameters, if: :devise_controller?
|
3
6
|
|
4
|
-
|
5
|
-
|
7
|
+
# Security Filters
|
8
|
+
protect_from_forgery with: :exception
|
6
9
|
|
7
|
-
|
8
|
-
|
10
|
+
# Load Requried Helper Files
|
11
|
+
helper PhcdevworksActiveMenus::Engine.helpers
|
12
|
+
helper PhcdevworksNotifications::Engine.helpers
|
13
|
+
helper PhcdevworksTitleseo::Engine.helpers
|
9
14
|
|
10
|
-
|
11
|
-
helper PhcdevworksActiveMenus::Engine.helpers
|
12
|
-
helper PhcdevworksNotifications::Engine.helpers
|
13
|
-
helper PhcdevworksTitleseo::Engine.helpers
|
15
|
+
private
|
14
16
|
|
15
|
-
|
17
|
+
# Whitelist Additional Fields
|
18
|
+
def phcdevworks_accounts_permitted_parameters
|
19
|
+
added_attrs = [:username, :firstname, :lastname, :email, :terms_of_service, :password, :password_confirmation, :remember_me]
|
20
|
+
devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
|
21
|
+
devise_parameter_sanitizer.permit :account_update, keys: added_attrs
|
22
|
+
end
|
16
23
|
|
17
|
-
# Whitelist Additional Fields
|
18
|
-
def phcdevworks_accounts_permitted_parameters
|
19
|
-
added_attrs = [:username, :firstname, :lastname, :email, :terms_of_service, :password, :password_confirmation, :remember_me]
|
20
|
-
devise_parameter_sanitizer.permit :sign_up, keys: added_attrs
|
21
|
-
devise_parameter_sanitizer.permit :account_update, keys: added_attrs
|
22
24
|
end
|
23
|
-
|
24
|
-
end
|
25
25
|
end
|
@@ -2,8 +2,7 @@
|
|
2
2
|
<span>
|
3
3
|
<!-- -PHC- Footer Content - Left - Time in Production -->
|
4
4
|
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
-
<span class="font-weight-bold">PHC</span>Devworks Accounts -
|
6
|
-
Engine v<%= Gem.loaded_specs["phcdevworks_accounts"].version.to_s %>
|
5
|
+
<span class="font-weight-bold">PHC</span>Devworks Accounts - Engine v<%= Gem.loaded_specs["phcdevworks_accounts"].version.to_s %>
|
7
6
|
<!-- -PHC- Footer Content - Left - Time in Production -->
|
8
7
|
</span>
|
9
8
|
<!-- -PHC- Footer Content - Left -->
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_accounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|