phcdevworks_accounts 1.2.0 → 1.3.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/assets/javascripts/phcdevworks_accounts/account/dashboard.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_accounts/admin/accounts.coffee +3 -0
- data/app/assets/stylesheets/phcdevworks_accounts/account/dashboard.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_accounts/admin/accounts.scss +3 -0
- data/app/controllers/phcdevworks_accounts/account/dashboard_controller.rb +2 -2
- data/app/controllers/phcdevworks_accounts/admin/accounts_controller.rb +2 -1
- data/app/helpers/phcdevworks_accounts/account/dashboard_helper.rb +4 -0
- data/app/helpers/phcdevworks_accounts/admin/accounts_helper.rb +4 -0
- data/app/models/phcdevworks_accounts/user.rb +2 -2
- data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +35 -35
- data/app/views/users/confirmations/new.html.erb +41 -41
- data/app/views/users/passwords/edit.html.erb +53 -48
- data/app/views/users/passwords/new.html.erb +43 -43
- data/app/views/users/registrations/edit.html.erb +12 -12
- data/app/views/users/registrations/new.html.erb +105 -102
- data/app/views/users/sessions/new.html.erb +77 -76
- data/config/initializers/devise.rb +3 -3
- data/config/locales/devise.en.yml +1 -1
- data/db/migrate/{20190701112047_devise_create_phcdevworks_accounts_users.rb → 20191012042035_devise_create_phcdevworks_accounts_users.rb} +0 -0
- data/db/migrate/{20190701120003_add_userinfo_to_users.rb → 20191012060241_add_userinfo_to_users.rb} +2 -2
- data/db/migrate/{20190701120028_add_role_to_users.rb → 20191012060308_add_role_to_users.rb} +0 -0
- data/db/migrate/{20190701120045_add_terms_to_users.rb → 20191012060324_add_tos_to_users.rb} +3 -3
- data/lib/phcdevworks_accounts/engine.rb +5 -12
- data/lib/phcdevworks_accounts/version.rb +1 -1
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cf21ca2aec1fb5f70deec60e716c4dc30de8244d8af1c9d43bfcba162c8566a
|
4
|
+
data.tar.gz: a85708cdc509aba6e49bc8266081359745699caad162de0e5afa3be9f9c7a5b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff6bd9e9e831f83a80237c00a0ba4d3bb39510daed53b2f5c9ffb7318a245a1e1fa92a8126df1e8fc1ab801930fe981f0d3b80c4cece05204ba7def18ef22920
|
7
|
+
data.tar.gz: 263d806c052ff0a6afb6f309565f5c104628bf0f89a74b940633713e348d124744323efb725d56a745bc6842dfc93b4afa2bd6006bb514815dfd1d4977450afa
|
@@ -3,10 +3,11 @@ require_dependency "phcdevworks_accounts/application_controller"
|
|
3
3
|
module PhcdevworksAccounts
|
4
4
|
class Admin::AccountsController < ApplicationController
|
5
5
|
|
6
|
-
# Admin Dashboard
|
6
|
+
# Admin Main Dashboard
|
7
7
|
def index
|
8
8
|
end
|
9
9
|
|
10
|
+
# Admin User List
|
10
11
|
def users_index
|
11
12
|
end
|
12
13
|
|
@@ -4,37 +4,37 @@
|
|
4
4
|
<!-- Sidebar - User Profile Menu -->
|
5
5
|
<ul class="nav">
|
6
6
|
<% if current_user %>
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
7
|
+
<li class="nav-profile">
|
8
|
+
<a href="javascript:;" data-toggle="nav-profile">
|
9
|
+
<div class="cover with-shadow"></div>
|
10
|
+
<div class="image">
|
11
|
+
<%= image_tag current_user.gravatar_url %>
|
12
|
+
</div>
|
13
|
+
<div class="info">
|
14
|
+
<b class="caret pull-right"></b>
|
15
|
+
<%= current_user.firstname + ' ' + current_user.lastname %>
|
16
|
+
<small><%= current_user.username %></small>
|
17
|
+
</div>
|
18
|
+
</a>
|
19
|
+
</li>
|
20
|
+
<li>
|
21
|
+
<ul class="nav nav-profile">
|
22
|
+
<li>
|
23
|
+
<%= link_to phcdevworks_accounts.edit_user_registration_path do %>
|
24
|
+
<i class="fad fa-cogs"></i> Account Settings
|
25
|
+
<% end %>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<%= link_to phcdevworks_accounts.destroy_user_session_path do %>
|
29
|
+
<i class="fad fa-sign-out-alt"></i> Logout
|
30
|
+
<% end %>
|
31
|
+
</li>
|
32
|
+
</ul>
|
33
|
+
</li>
|
34
34
|
<% end %>
|
35
35
|
</ul>
|
36
36
|
<!-- Sidebar - User Profile Menu -->
|
37
|
-
|
37
|
+
|
38
38
|
<!-- Sidebar - Sidebar Navigation -->
|
39
39
|
<ul class="nav">
|
40
40
|
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</li>
|
66
66
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
67
67
|
<% end %>
|
68
|
-
|
68
|
+
|
69
69
|
<% if defined?phcdevworks_press %>
|
70
70
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
71
71
|
<li class="nav-header">Article Management</li>
|
@@ -93,7 +93,7 @@
|
|
93
93
|
</li>
|
94
94
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
95
95
|
<% end %>
|
96
|
-
|
96
|
+
|
97
97
|
<% if defined?phcdevworks_scripts %>
|
98
98
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
|
99
99
|
<li class="nav-header">Script Management</li>
|
@@ -134,7 +134,7 @@
|
|
134
134
|
</li>
|
135
135
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks Scripts -->
|
136
136
|
<% end %>
|
137
|
-
|
137
|
+
|
138
138
|
<% if defined?phcdevworks_real_estate %>
|
139
139
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
140
140
|
<li class="nav-header">Listing Management</li>
|
@@ -162,7 +162,7 @@
|
|
162
162
|
</li>
|
163
163
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
164
164
|
<% end %>
|
165
|
-
|
165
|
+
|
166
166
|
<% if defined?phcdevworks_tutorials %>
|
167
167
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
168
168
|
<li class="nav-header">Tutorials</li>
|
@@ -190,7 +190,7 @@
|
|
190
190
|
</li>
|
191
191
|
<!-- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
192
192
|
<% end %>
|
193
|
-
|
193
|
+
|
194
194
|
<% if current_user && current_user.admin? %>
|
195
195
|
<!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
196
196
|
<li class="nav-header">User Administration</li>
|
@@ -206,7 +206,7 @@
|
|
206
206
|
</li>
|
207
207
|
<!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
208
208
|
<% end %>
|
209
|
-
|
209
|
+
|
210
210
|
<% if current_user %>
|
211
211
|
<!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
212
212
|
<li class="nav-header">Your Account</li>
|
@@ -223,7 +223,7 @@
|
|
223
223
|
</li>
|
224
224
|
<!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
225
225
|
<% end %>
|
226
|
-
|
226
|
+
|
227
227
|
<!-- Sidebar - Sidebar Minifier -->
|
228
228
|
<li>
|
229
229
|
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
|
@@ -1,62 +1,62 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Unlock Password" %>
|
3
3
|
<% phc_title_tagline "Unlock Your " + resource_name.to_s.humanize + " Unlock Password" %>
|
4
4
|
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Home", phcdevworks_accounts.welcome_status_page_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
|
-
<!--
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
13
16
|
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
14
|
-
<!--
|
17
|
+
<!-- Page Header -->
|
15
18
|
|
16
19
|
<!-- Page Content -->
|
17
20
|
<div class="row">
|
18
|
-
|
19
|
-
|
20
|
-
<!-- Panel -->
|
21
|
-
<div class="panel panel-inverse">
|
21
|
+
<div class="col-lg-12">
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
<!-- Panel - Actions -->
|
26
|
-
<div class="panel-heading-btn">
|
27
|
-
<a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
28
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
29
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
30
|
-
</div>
|
31
|
-
<!-- Panel - Actions -->
|
32
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
33
|
-
</div>
|
34
|
-
<!-- Panel - Heading -->
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
35
25
|
|
36
|
-
|
37
|
-
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
38
31
|
|
39
|
-
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
40
34
|
|
41
|
-
|
35
|
+
<!-- New Form -->
|
36
|
+
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |form| %>
|
42
37
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
</div>
|
38
|
+
<!-- Devise Error Message -->
|
39
|
+
<%= devise_error_messages! %>
|
40
|
+
<!-- Devise Error Message -->
|
47
41
|
|
48
|
-
|
49
|
-
|
50
|
-
|
42
|
+
<div class="form-group">
|
43
|
+
<%= form.label :email %>
|
44
|
+
<%= form.email_field :email, class: "form-control", autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="actions">
|
48
|
+
<%= form.submit "Resend Confirmation Instructions", class: "btn btn-primary block full-width" %>
|
49
|
+
</div>
|
51
50
|
|
52
|
-
|
51
|
+
<% end %>
|
52
|
+
<!-- New Form -->
|
53
53
|
|
54
|
-
|
55
|
-
|
54
|
+
</div>
|
55
|
+
<!-- Panel - Body -->
|
56
56
|
|
57
|
-
|
58
|
-
|
57
|
+
</div>
|
58
|
+
<!-- Panel -->
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
<!-- Page Content -->
|
@@ -1,73 +1,78 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Edit Password" %>
|
3
3
|
<% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Edit Password" %>
|
4
4
|
<% phc_breadcrumb_one link_to resource_name.to_s.humanize + " Accounts Home", phcdevworks_accounts.welcome_status_page_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
|
-
<!--
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
13
16
|
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
14
|
-
<!--
|
17
|
+
<!-- Page Header -->
|
15
18
|
|
16
19
|
<!-- Page Content -->
|
17
20
|
<div class="row">
|
18
|
-
|
19
|
-
|
20
|
-
<!-- Panel -->
|
21
|
-
<div class="panel panel-inverse">
|
21
|
+
<div class="col-lg-12">
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
<!-- Panel - Actions -->
|
26
|
-
<div class="panel-heading-btn">
|
27
|
-
<a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
28
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
29
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
30
|
-
</div>
|
31
|
-
<!-- Panel - Actions -->
|
32
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
33
|
-
</div>
|
34
|
-
<!-- Panel - Heading -->
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
35
25
|
|
36
|
-
|
37
|
-
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
38
31
|
|
39
|
-
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
40
34
|
|
41
|
-
|
42
|
-
|
35
|
+
<!-- Edit Form -->
|
36
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
|
43
37
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
38
|
+
<!-- Devise Error Message -->
|
39
|
+
<%= devise_error_messages! %>
|
40
|
+
<!-- Devise Error Message -->
|
41
|
+
|
42
|
+
<!-- Reset Password Token -->
|
43
|
+
<%= form.hidden_field :reset_password_token %>
|
44
|
+
<!-- Reset Password Token -->
|
51
45
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
46
|
+
<div class="form-group">
|
47
|
+
<%= form.label :password, "New password" %>
|
48
|
+
<% if @minimum_password_length %>
|
49
|
+
<em>(<%= @minimum_password_length %> characters minimum)</em>
|
50
|
+
<% end %>
|
51
|
+
<%= form.password_field :password, autofocus: true, autocomplete: "off" %>
|
52
|
+
</div>
|
56
53
|
|
57
|
-
|
58
|
-
|
59
|
-
|
54
|
+
<div class="form-group">
|
55
|
+
<%= form.label :password_confirmation, "Confirm new password" %>
|
56
|
+
<%= form.password_field :password_confirmation, autocomplete: "off" %>
|
57
|
+
</div>
|
60
58
|
|
61
|
-
|
59
|
+
<div class="actions">
|
60
|
+
<%= form.submit "Change my password" %>
|
61
|
+
</div>
|
62
62
|
|
63
|
-
|
63
|
+
<% end %>
|
64
|
+
<!-- Edit Form -->
|
65
|
+
|
66
|
+
<!-- Devise Links -->
|
67
|
+
<%= render "devise/shared/links" %>
|
68
|
+
<!-- Devise Links -->
|
64
69
|
|
65
|
-
|
66
|
-
|
70
|
+
</div>
|
71
|
+
<!-- Panel - Body -->
|
67
72
|
|
68
|
-
|
69
|
-
|
73
|
+
</div>
|
74
|
+
<!-- Panel -->
|
70
75
|
|
71
|
-
|
76
|
+
</div>
|
72
77
|
</div>
|
73
78
|
<!-- Page Content -->
|
@@ -1,65 +1,65 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title "Send Password Reset Link" %>
|
3
3
|
<% phc_title_tagline "Password Reset Form" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Home", main_app.root_path %>
|
5
5
|
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!-- Title
|
6
|
+
<!-- PHCTitleSEO Title Variables -->
|
7
7
|
|
8
|
-
<!--
|
8
|
+
<!-- Page Bradcrumbs -->
|
9
9
|
<ol class="breadcrumb pull-right">
|
10
|
-
|
11
|
-
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
12
|
</ol>
|
13
|
+
<!-- Page Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- Page Header -->
|
13
16
|
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
14
|
-
<!--
|
17
|
+
<!-- Page Header -->
|
15
18
|
|
16
19
|
<!-- Page Content -->
|
17
20
|
<div class="row">
|
18
|
-
|
19
|
-
|
20
|
-
<!-- Panel -->
|
21
|
-
<div class="panel panel-inverse">
|
22
|
-
|
23
|
-
<!-- Panel - Heading -->
|
24
|
-
<div class="panel-heading">
|
25
|
-
<!-- Panel - Actions -->
|
26
|
-
<div class="panel-heading-btn">
|
27
|
-
<a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
28
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
29
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
30
|
-
</div>
|
31
|
-
<!-- Panel - Actions -->
|
32
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
33
|
-
</div>
|
34
|
-
<!-- Panel - Heading -->
|
21
|
+
<div class="col-lg-12">
|
35
22
|
|
36
|
-
|
37
|
-
|
23
|
+
<!-- Panel -->
|
24
|
+
<div class="panel panel-inverse">
|
38
25
|
|
39
|
-
|
26
|
+
<!-- Panel - Heading -->
|
27
|
+
<div class="panel-heading">
|
28
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
29
|
+
</div>
|
30
|
+
<!-- Panel - Heading -->
|
40
31
|
|
41
|
-
|
32
|
+
<!-- Panel - Body -->
|
33
|
+
<div class="panel-body">
|
42
34
|
|
43
|
-
|
44
|
-
|
45
|
-
<%= form.email_field :email, autofocus: true, autocomplete: "email", class: "form-control form-control-lg" %>
|
46
|
-
</div>
|
35
|
+
<!-- New Form -->
|
36
|
+
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |form| %>
|
47
37
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
Send Password Reset Instructions
|
52
|
-
<% end %>
|
53
|
-
</div>
|
38
|
+
<!-- Devise Error Message -->
|
39
|
+
<%= devise_error_messages! %>
|
40
|
+
<!-- Devise Error Message -->
|
54
41
|
|
55
|
-
|
42
|
+
<div class="form-group">
|
43
|
+
<%= form.label :email %>
|
44
|
+
<%= form.email_field :email, autofocus: true, autocomplete: "email", class: "form-control form-control-lg" %>
|
45
|
+
</div>
|
56
46
|
|
57
|
-
|
58
|
-
|
47
|
+
<div class="actions">
|
48
|
+
<%= form.button class: "btn btn-success" do %>
|
49
|
+
<i class="far fa-paper-plane"></i>
|
50
|
+
Send Password Reset Instructions
|
51
|
+
<% end %>
|
52
|
+
</div>
|
59
53
|
|
60
|
-
|
61
|
-
|
54
|
+
<% end %>
|
55
|
+
<!-- New Form -->
|
62
56
|
|
63
|
-
|
57
|
+
</div>
|
58
|
+
<!-- Panel - Body -->
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<!-- Panel -->
|
62
|
+
|
63
|
+
</div>
|
64
64
|
</div>
|
65
65
|
<!-- Page Content -->
|
@@ -1,19 +1,22 @@
|
|
1
|
-
<!-- Title
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
2
|
<% phc_title resource_name.to_s.humanize + " Account Information" %>
|
3
3
|
<% phc_title_tagline "Edit Your " + resource_name.to_s.humanize + " Account Information" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Home", main_app.root_path %>
|
5
5
|
<% phc_breadcrumb_two link_to "Accounts Dashboard", phcdevworks_accounts.dashboard_path %>
|
6
6
|
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- Title
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
8
|
|
9
|
-
<!--
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
10
|
<ol class="breadcrumb pull-right">
|
11
11
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
12
|
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
13
|
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
14
|
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
15
18
|
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
16
|
-
<!--
|
19
|
+
<!-- Page Header -->
|
17
20
|
|
18
21
|
<!-- Page Content -->
|
19
22
|
<div class="row">
|
@@ -24,13 +27,6 @@
|
|
24
27
|
|
25
28
|
<!-- Panel - Heading -->
|
26
29
|
<div class="panel-heading">
|
27
|
-
<!-- Panel - Actions -->
|
28
|
-
<div class="panel-heading-btn">
|
29
|
-
<a href="#" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
|
30
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
|
31
|
-
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
|
32
|
-
</div>
|
33
|
-
<!-- Panel - Actions -->
|
34
30
|
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
35
31
|
</div>
|
36
32
|
<!-- Panel - Heading -->
|
@@ -38,9 +34,12 @@
|
|
38
34
|
<!-- Panel - Body -->
|
39
35
|
<div class="panel-body">
|
40
36
|
|
37
|
+
<!-- Edit Form -->
|
41
38
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |form| %>
|
42
39
|
|
40
|
+
<!-- Devise Error Message -->
|
43
41
|
<%= devise_error_messages! %>
|
42
|
+
<!-- Devise Error Message -->
|
44
43
|
|
45
44
|
<div class="form-group">
|
46
45
|
<%= form.label :firstname, "First Name" %>
|
@@ -67,7 +66,7 @@
|
|
67
66
|
<% end %>
|
68
67
|
|
69
68
|
<div class="form-group">
|
70
|
-
<%= form.label :password, "New Password" %> <i>(leave blank if you don
|
69
|
+
<%= form.label :password, "New Password" %> <i>(leave blank if you don"t want to change it)</i>
|
71
70
|
<%= form.password_field :password, class: "form-control", placeholder: "New Password", autocomplete: "off" %>
|
72
71
|
</div>
|
73
72
|
|
@@ -89,6 +88,7 @@
|
|
89
88
|
</div>
|
90
89
|
|
91
90
|
<% end %>
|
91
|
+
<!-- Edit Form -->
|
92
92
|
|
93
93
|
</div>
|
94
94
|
<!-- Panel - Body -->
|
@@ -1,111 +1,114 @@
|
|
1
1
|
<!-- Page Container -->
|
2
2
|
<div id="page-container">
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
<!-- Ad/News Feed Area -->
|
16
|
-
|
17
|
-
<!-- Registration Form -->
|
18
|
-
<div class="right-content">
|
19
|
-
|
20
|
-
<!-- Page Notifications -->
|
21
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
22
|
-
<!-- Page Notifications -->
|
23
|
-
|
24
|
-
<!-- Registration Form Header -->
|
25
|
-
<h1 class="register-header">
|
26
|
-
Accounts Signup
|
27
|
-
<small>No credit card requried on signup.</small>
|
28
|
-
</h1>
|
29
|
-
<!-- Registration Form Header -->
|
30
|
-
|
31
|
-
<!-- Registration Form Content -->
|
32
|
-
<div class="register-content">
|
33
|
-
|
34
|
-
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |form| %>
|
35
|
-
|
36
|
-
<%= devise_error_messages! %>
|
37
|
-
|
38
|
-
<label class="control-label">Name <span class="text-danger">*</span></label>
|
39
|
-
<div class="row row-space-10">
|
40
|
-
<div class="col-md-6 m-b-15">
|
41
|
-
<%= form.text_field :firstname, autocomplete: "First Name", placeholder: "First Name", class: "form-control" %>
|
42
|
-
</div>
|
43
|
-
<div class="col-md-6 m-b-15">
|
44
|
-
<%= form.text_field :lastname, autocomplete: "Last Name", placeholder: "Last Name", class: "form-control" %>
|
45
|
-
</div>
|
46
|
-
<div class="col-md-12 m-b-15">
|
47
|
-
<%= form.text_field :username, autocomplete: "User Name", placeholder: "User Name", class: "form-control" %>
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<label class="control-label">Email <span class="text-danger">*</span></label>
|
52
|
-
<div class="row m-b-15">
|
53
|
-
<div class="col-md-12">
|
54
|
-
<%= form.email_field :email, autocomplete: "Email", placeholder: "Email", class: "form-control" %>
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
|
58
|
-
<label class="control-label">Password <span class="text-danger">*</span></label>
|
59
|
-
<div class="row m-b-15">
|
60
|
-
<div class="col-md-12">
|
61
|
-
<%= form.password_field :password, autocomplete: "off", placeholder: "Type in a Secure Password", class: "form-control" %>
|
4
|
+
<!-- Registration Area -->
|
5
|
+
<div class="register register-with-news-feed">
|
6
|
+
|
7
|
+
<!-- Ad/News Feed Area -->
|
8
|
+
<div class="news-feed">
|
9
|
+
<div class="news-image" style="background-image: url(https://static.phcnetworks.net/phc_engines/phc_accounts_pro/tropical_house_beach.jpg)"></div>
|
10
|
+
<div class="news-caption">
|
11
|
+
<h4 class="caption-title"><strong>PHC</strong>Devworks</h4>
|
12
|
+
<p>Rails 6 User Accounts Engine</p>
|
62
13
|
</div>
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
14
|
+
</div>
|
15
|
+
<!-- Ad/News Feed Area -->
|
16
|
+
|
17
|
+
<!-- Registration Form -->
|
18
|
+
<div class="right-content">
|
19
|
+
|
20
|
+
<!-- Page Notifications -->
|
21
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
22
|
+
<!-- Page Notifications -->
|
23
|
+
|
24
|
+
<!-- Registration Form Header -->
|
25
|
+
<h1 class="register-header">
|
26
|
+
Accounts Signup
|
27
|
+
<small>No credit card requried on signup.</small>
|
28
|
+
</h1>
|
29
|
+
<!-- Registration Form Header -->
|
30
|
+
|
31
|
+
<!-- Registration Form Content -->
|
32
|
+
<div class="register-content">
|
33
|
+
|
34
|
+
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |form| %>
|
35
|
+
|
36
|
+
<!-- Devise Error Message -->
|
37
|
+
<%= devise_error_messages! %>
|
38
|
+
<!-- Devise Error Message -->
|
39
|
+
|
40
|
+
<label class="control-label">Name <span class="text-danger">*</span></label>
|
41
|
+
<div class="row row-space-10">
|
42
|
+
<div class="col-md-6 m-b-15">
|
43
|
+
<%= form.text_field :firstname, autocomplete: "First Name", placeholder: "First Name", class: "form-control" %>
|
44
|
+
</div>
|
45
|
+
<div class="col-md-6 m-b-15">
|
46
|
+
<%= form.text_field :lastname, autocomplete: "Last Name", placeholder: "Last Name", class: "form-control" %>
|
47
|
+
</div>
|
48
|
+
<div class="col-md-12 m-b-15">
|
49
|
+
<%= form.text_field :username, autocomplete: "User Name", placeholder: "User Name", class: "form-control" %>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<label class="control-label">Email <span class="text-danger">*</span></label>
|
54
|
+
<div class="row m-b-15">
|
55
|
+
<div class="col-md-12">
|
56
|
+
<%= form.email_field :email, autocomplete: "Email", placeholder: "Email", class: "form-control" %>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<label class="control-label">Password <span class="text-danger">*</span></label>
|
61
|
+
<div class="row m-b-15">
|
62
|
+
<div class="col-md-12">
|
63
|
+
<%= form.password_field :password, autocomplete: "off", placeholder: "Type in a Secure Password", class: "form-control" %>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
|
67
|
+
<label class="control-label">Password Confirmation <span class="text-danger">*</span></label>
|
68
|
+
<div class="row m-b-15">
|
69
|
+
<div class="col-md-12">
|
70
|
+
<%= form.password_field :password, autocomplete: "off", placeholder: "Confirm your Password", class: "form-control" %>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<div class="checkbox-css m-b-30">
|
75
|
+
<div class="form-check checkbox-css m-b-30">
|
76
|
+
<%= form.check_box :terms_of_service, required: true, class: "form-check-input", id: "agreement_checkbox" %>
|
77
|
+
<label class="form-check-label">
|
78
|
+
By clicking Sign Up, you agree to our <a href="javascript:;">Terms</a> and that you have read our <a href="javascript:;">Data Policy</a>, including our <a href="javascript:;">Cookie Use</a>.
|
79
|
+
</label>
|
80
|
+
</div>
|
81
|
+
</div>
|
82
|
+
|
83
|
+
<div class="register-buttons">
|
84
|
+
<%= form.button :submit, class: "btn btn-primary btn-block btn-lg" do %>
|
85
|
+
<i class="batch-icon batch-icon-key"></i>
|
86
|
+
Sign Up
|
87
|
+
<% end %>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
<div class="m-t-20 m-b-40 p-b-40 text-inverse">
|
91
|
+
<%= render "users/shared/links" %>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
<% end %>
|
95
|
+
|
96
|
+
<hr>
|
97
|
+
|
98
|
+
<p class="text-center">
|
99
|
+
<i class="fal fa-copyright"></i> <strong>PHC</strong>Devworks Accounts <%= Time.now.year %> <br>
|
100
|
+
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
101
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
|
102
|
+
</p>
|
103
|
+
|
69
104
|
</div>
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<label class="form-check-label">
|
76
|
-
By clicking Sign Up, you agree to our <a href="javascript:;">Terms</a> and that you have read our <a href="javascript:;">Data Policy</a>, including our <a href="javascript:;">Cookie Use</a>.
|
77
|
-
</label>
|
78
|
-
</div
|
79
|
-
</div>
|
80
|
-
|
81
|
-
<div class="register-buttons">
|
82
|
-
<%= form.button :submit, class: "btn btn-primary btn-block btn-lg" do %>
|
83
|
-
<i class="batch-icon batch-icon-key"></i>
|
84
|
-
Sign Up
|
85
|
-
<% end %>
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<div class="m-t-20 m-b-40 p-b-40 text-inverse">
|
89
|
-
<%= render "users/shared/links" %>
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<% end %>
|
93
|
-
|
94
|
-
<hr>
|
95
|
-
<p class="text-center">
|
96
|
-
<i class="fal fa-copyright"></i> <strong>PHC</strong>Devworks Accounts <%= Time.now.year %> <br>
|
97
|
-
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
98
|
-
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
|
99
|
-
</p>
|
100
|
-
|
101
|
-
</div>
|
102
|
-
<!-- Registration Form Content -->
|
103
|
-
|
105
|
+
<!-- Registration Form Content -->
|
106
|
+
|
107
|
+
</div>
|
108
|
+
<!-- Registration Form -->
|
109
|
+
|
104
110
|
</div>
|
105
|
-
<!-- Registration
|
106
|
-
|
107
|
-
</div>
|
108
|
-
<!-- Registration Area -->
|
111
|
+
<!-- Registration Area -->
|
109
112
|
|
110
113
|
</div>
|
111
114
|
<!-- Page Container -->
|
@@ -1,85 +1,86 @@
|
|
1
1
|
<!-- Page Container -->
|
2
2
|
<div id="page-container">
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
</div>
|
15
|
-
<!-- Ad/News Feed Area -->
|
16
|
-
|
17
|
-
<!-- Registration Form -->
|
18
|
-
<div class="right-content">
|
19
|
-
|
20
|
-
<!-- Page Notifications -->
|
21
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
22
|
-
<!-- Page Notifications -->
|
23
|
-
|
24
|
-
<!-- Registration Form Header -->
|
25
|
-
<h1 class="login-header">
|
26
|
-
<div class="brand">
|
27
|
-
Accounts Sign-In
|
28
|
-
<small>To continue account sign-in is required.</small>
|
4
|
+
<!-- Registration Area -->
|
5
|
+
<div class="login login-with-news-feed">
|
6
|
+
|
7
|
+
<!-- Ad/News Feed Area -->
|
8
|
+
<div class="news-feed">
|
9
|
+
<div class="news-image" style="background-image: url(https://static.phcnetworks.net/phc_engines/phc_accounts_pro/tropical_house_beach.jpg)"></div>
|
10
|
+
<div class="news-caption">
|
11
|
+
<h4 class="caption-title"><strong>PHC</strong>Devworks</h4>
|
12
|
+
<p>Rails 6 User Accounts Engine</p>
|
13
|
+
</div>
|
29
14
|
</div>
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
15
|
+
<!-- Ad/News Feed Area -->
|
16
|
+
|
17
|
+
<!-- Registration Form -->
|
18
|
+
<div class="right-content">
|
19
|
+
|
20
|
+
<!-- Page Notifications -->
|
21
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
22
|
+
<!-- Page Notifications -->
|
23
|
+
|
24
|
+
<!-- Registration Form Header -->
|
25
|
+
<h1 class="login-header">
|
26
|
+
<div class="brand">
|
27
|
+
Accounts Sign-In
|
28
|
+
<small>To continue account sign-in is required.</small>
|
29
|
+
</div>
|
30
|
+
</h1>
|
31
|
+
<!-- Registration Form Header -->
|
32
|
+
|
33
|
+
<!-- Registration Form Content -->
|
34
|
+
<div class="login-content">
|
35
|
+
|
36
|
+
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |form| %>
|
37
|
+
|
38
|
+
<%= devise_error_messages! %>
|
39
|
+
|
40
|
+
<div class="form-group m-b-15">
|
41
|
+
<%= form.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email", class: "form-control form-control-lg" %>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div class="form-group m-b-15">
|
45
|
+
<%= form.password_field :password, autocomplete: "off", placeholder: "Your Password", class: "form-control form-control-lg" %>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<div class="checkbox checkbox-css m-b-30">
|
49
|
+
<% if devise_mapping.rememberable? -%>
|
50
|
+
<%= form.check_box :remember_me, class: "custom-control-input" %>
|
51
|
+
<%= form.label :remember_me, class: "custom-control-label" %>
|
52
|
+
<% end -%>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div class="login-buttons">
|
56
|
+
<%= form.button :submit, class: "btn btn-success btn-block btn-lg" do %>
|
57
|
+
<i class="batch-icon batch-icon-key"></i>
|
58
|
+
Sign-In
|
59
|
+
<% end %>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div class="m-t-20 m-b-40 p-b-40 text-inverse">
|
63
|
+
<%= render "users/shared/links" %>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
<hr>
|
69
|
+
|
70
|
+
<p class="text-center">
|
71
|
+
<i class="fal fa-copyright"></i> <strong>PHC</strong>Devworks Accounts <%= Time.now.year %> <br>
|
72
|
+
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
73
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
|
74
|
+
</p>
|
75
|
+
|
76
|
+
</div>
|
77
|
+
<!-- Registration Form Content -->
|
78
|
+
|
79
|
+
</div>
|
80
|
+
<!-- Registration Form -->
|
77
81
|
|
78
82
|
</div>
|
79
|
-
<!-- Registration
|
80
|
-
|
81
|
-
</div>
|
82
|
-
<!-- Registration Area -->
|
83
|
+
<!-- Registration Area -->
|
83
84
|
|
84
85
|
</div>
|
85
86
|
<!-- Page Container -->
|
@@ -10,7 +10,7 @@ Devise.setup do |config|
|
|
10
10
|
# Devise will use the `secret_key_base` as its `secret_key`
|
11
11
|
# by default. You can change it below and use your own secret key.
|
12
12
|
config.secret_key = ENV['SECRET_KEY_BASE'] if Rails.env.production?
|
13
|
-
config.secret_key = '
|
13
|
+
# config.secret_key = 'c820cfaf52fdef30f175df6613d15419b36c28179b3853c7a2814f1e804286c6b82a7b88677aa958ac56937a8c9331575fee09fa25ac4295d007cc5c7cfa5117'
|
14
14
|
|
15
15
|
# ==> Controller configuration
|
16
16
|
# Configure the parent class to the devise controllers.
|
@@ -116,7 +116,7 @@ Devise.setup do |config|
|
|
116
116
|
config.stretches = Rails.env.test? ? 1 : 11
|
117
117
|
|
118
118
|
# Set up a pepper to generate the hashed password.
|
119
|
-
# config.pepper = '
|
119
|
+
# config.pepper = '8cb8115e84ce11219f028bd27b1a98ab5802a37cd0ab7e54b92ba74e64370b4a415602cc933e7215128faa952c4a7c5ff813d9ff83a3f8bea5d01c23c1f70f64'
|
120
120
|
|
121
121
|
# Send a notification to the original email when the user's email is changed.
|
122
122
|
# config.send_email_changed_notification = false
|
@@ -168,7 +168,7 @@ Devise.setup do |config|
|
|
168
168
|
|
169
169
|
# ==> Configuration for :validatable
|
170
170
|
# Range for password length.
|
171
|
-
config.password_length = 6..
|
171
|
+
config.password_length = 6..128
|
172
172
|
|
173
173
|
# Email regex used to validate email formats. It simply asserts that
|
174
174
|
# one (and only one) @ exists in the given string. This is mainly
|
@@ -42,7 +42,7 @@ en:
|
|
42
42
|
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
43
43
|
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
44
44
|
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
45
|
-
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the
|
45
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirmation link to confirm your new email address."
|
46
46
|
updated: "Your account has been updated successfully."
|
47
47
|
updated_but_not_signed_in: "Your account has been updated successfully, but since your password was changed, you need to sign in again"
|
48
48
|
sessions:
|
File without changes
|
data/db/migrate/{20190701120003_add_userinfo_to_users.rb → 20191012060241_add_userinfo_to_users.rb}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
class AddUserinfoToUsers < ActiveRecord::Migration[6.0]
|
2
2
|
def change
|
3
|
-
|
3
|
+
|
4
4
|
add_column :phcdevworks_accounts_users, :firstname, :string
|
5
5
|
add_column :phcdevworks_accounts_users, :lastname, :string
|
6
6
|
add_column :phcdevworks_accounts_users, :username, :string
|
@@ -10,6 +10,6 @@ class AddUserinfoToUsers < ActiveRecord::Migration[6.0]
|
|
10
10
|
add_index :phcdevworks_accounts_users, :lastname
|
11
11
|
add_index :phcdevworks_accounts_users, :username, unique: true
|
12
12
|
add_index :phcdevworks_accounts_users, :org_id, unique: true
|
13
|
-
|
13
|
+
|
14
14
|
end
|
15
15
|
end
|
File without changes
|
@@ -16,25 +16,18 @@ module PhcdevworksAccounts
|
|
16
16
|
require "mini_magick"
|
17
17
|
|
18
18
|
# Frontend Dependencies
|
19
|
-
require
|
20
|
-
require
|
19
|
+
require "gravtastic"
|
20
|
+
require "friendly_id"
|
21
21
|
|
22
22
|
# Security Dependencies
|
23
|
-
require
|
24
|
-
require
|
23
|
+
require "devise"
|
24
|
+
require "simple_token_authentication"
|
25
25
|
|
26
26
|
# Payment Dependencies
|
27
|
-
require
|
27
|
+
require "activemerchant"
|
28
28
|
|
29
29
|
# Plugin Namespace
|
30
30
|
isolate_namespace PhcdevworksAccounts
|
31
31
|
|
32
|
-
# Load Requried Helper Files
|
33
|
-
config.to_prepare do
|
34
|
-
PhcdevworksActiveMenus::ApplicationController.helper(ApplicationHelper)
|
35
|
-
PhcdevworksNotifications::ApplicationController.helper(ApplicationHelper)
|
36
|
-
PhcdevworksTitleseo::ApplicationController.helper(ApplicationHelper)
|
37
|
-
end
|
38
|
-
|
39
32
|
end
|
40
33
|
end
|
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: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -248,7 +248,7 @@ dependencies:
|
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '1.4'
|
251
|
-
description: Ruby on Rails 6 Authentication and User Management Engine
|
251
|
+
description: Ruby on Rails 6 Authentication and User Management Engine.
|
252
252
|
email:
|
253
253
|
- developers@phcdevworks.com
|
254
254
|
executables: []
|
@@ -259,11 +259,17 @@ files:
|
|
259
259
|
- README.md
|
260
260
|
- Rakefile
|
261
261
|
- app/assets/config/phcdevworks_accounts_manifest.js
|
262
|
+
- app/assets/javascripts/phcdevworks_accounts/account/dashboard.coffee
|
263
|
+
- app/assets/javascripts/phcdevworks_accounts/admin/accounts.coffee
|
262
264
|
- app/assets/javascripts/phcdevworks_accounts/application.js
|
265
|
+
- app/assets/stylesheets/phcdevworks_accounts/account/dashboard.scss
|
266
|
+
- app/assets/stylesheets/phcdevworks_accounts/admin/accounts.scss
|
263
267
|
- app/assets/stylesheets/phcdevworks_accounts/application.scss
|
264
268
|
- app/controllers/phcdevworks_accounts/account/dashboard_controller.rb
|
265
269
|
- app/controllers/phcdevworks_accounts/admin/accounts_controller.rb
|
266
270
|
- app/controllers/phcdevworks_accounts/application_controller.rb
|
271
|
+
- app/helpers/phcdevworks_accounts/account/dashboard_helper.rb
|
272
|
+
- app/helpers/phcdevworks_accounts/admin/accounts_helper.rb
|
267
273
|
- app/helpers/phcdevworks_accounts/application_helper.rb
|
268
274
|
- app/jobs/phcdevworks_accounts/application_job.rb
|
269
275
|
- app/mailers/phcdevworks_accounts/application_mailer.rb
|
@@ -295,10 +301,10 @@ files:
|
|
295
301
|
- config/initializers/devise.rb
|
296
302
|
- config/locales/devise.en.yml
|
297
303
|
- config/routes.rb
|
298
|
-
- db/migrate/
|
299
|
-
- db/migrate/
|
300
|
-
- db/migrate/
|
301
|
-
- db/migrate/
|
304
|
+
- db/migrate/20191012042035_devise_create_phcdevworks_accounts_users.rb
|
305
|
+
- db/migrate/20191012060241_add_userinfo_to_users.rb
|
306
|
+
- db/migrate/20191012060308_add_role_to_users.rb
|
307
|
+
- db/migrate/20191012060324_add_tos_to_users.rb
|
302
308
|
- lib/phcdevworks_accounts.rb
|
303
309
|
- lib/phcdevworks_accounts/engine.rb
|
304
310
|
- lib/phcdevworks_accounts/version.rb
|
@@ -322,8 +328,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
328
|
- !ruby/object:Gem::Version
|
323
329
|
version: '0'
|
324
330
|
requirements: []
|
325
|
-
rubygems_version: 3.0.
|
331
|
+
rubygems_version: 3.0.6
|
326
332
|
signing_key:
|
327
333
|
specification_version: 4
|
328
|
-
summary: Rails 6
|
334
|
+
summary: Rails 6 - Engine - User Accounts
|
329
335
|
test_files: []
|