phcdevworks_accounts 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/phcdevworks_accounts/account/dashboard.coffee +3 -0
  3. data/app/assets/javascripts/phcdevworks_accounts/admin/accounts.coffee +3 -0
  4. data/app/assets/stylesheets/phcdevworks_accounts/account/dashboard.scss +3 -0
  5. data/app/assets/stylesheets/phcdevworks_accounts/admin/accounts.scss +3 -0
  6. data/app/controllers/phcdevworks_accounts/account/dashboard_controller.rb +2 -2
  7. data/app/controllers/phcdevworks_accounts/admin/accounts_controller.rb +2 -1
  8. data/app/helpers/phcdevworks_accounts/account/dashboard_helper.rb +4 -0
  9. data/app/helpers/phcdevworks_accounts/admin/accounts_helper.rb +4 -0
  10. data/app/models/phcdevworks_accounts/user.rb +2 -2
  11. data/app/views/layouts/phcdevworks_accounts/components/backend/sidebars/_side_menu.html.erb +35 -35
  12. data/app/views/users/confirmations/new.html.erb +41 -41
  13. data/app/views/users/passwords/edit.html.erb +53 -48
  14. data/app/views/users/passwords/new.html.erb +43 -43
  15. data/app/views/users/registrations/edit.html.erb +12 -12
  16. data/app/views/users/registrations/new.html.erb +105 -102
  17. data/app/views/users/sessions/new.html.erb +77 -76
  18. data/config/initializers/devise.rb +3 -3
  19. data/config/locales/devise.en.yml +1 -1
  20. data/db/migrate/{20190701112047_devise_create_phcdevworks_accounts_users.rb → 20191012042035_devise_create_phcdevworks_accounts_users.rb} +0 -0
  21. data/db/migrate/{20190701120003_add_userinfo_to_users.rb → 20191012060241_add_userinfo_to_users.rb} +2 -2
  22. data/db/migrate/{20190701120028_add_role_to_users.rb → 20191012060308_add_role_to_users.rb} +0 -0
  23. data/db/migrate/{20190701120045_add_terms_to_users.rb → 20191012060324_add_tos_to_users.rb} +3 -3
  24. data/lib/phcdevworks_accounts/engine.rb +5 -12
  25. data/lib/phcdevworks_accounts/version.rb +1 -1
  26. metadata +15 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbf31270b79865336b99b6763d381b26417f88d7584c1ade198e50e4b1ce2339
4
- data.tar.gz: a5ec58127ea8f0fbe29d8db8217ce2bee3ceae0d57128ba27b7955f4b7112d63
3
+ metadata.gz: 7cf21ca2aec1fb5f70deec60e716c4dc30de8244d8af1c9d43bfcba162c8566a
4
+ data.tar.gz: a85708cdc509aba6e49bc8266081359745699caad162de0e5afa3be9f9c7a5b5
5
5
  SHA512:
6
- metadata.gz: 39052283a1727667e95a29b7d424eb79b5d63691fd6d9c71c52451efe4d692ff0db07be635550ec18484a6ffd3b87aa15110508a0499d01ea8908a9a7ce6e108
7
- data.tar.gz: d078a0d59b27298dbe5bb839b1be1dd87feb69c9f891b1eb11721ac93955ac14a091c2a6354d496d8845c21591c09025ebb37bae771119b6d8068084704a4151
6
+ metadata.gz: ff6bd9e9e831f83a80237c00a0ba4d3bb39510daed53b2f5c9ffb7318a245a1e1fa92a8126df1e8fc1ab801930fe981f0d3b80c4cece05204ba7def18ef22920
7
+ data.tar.gz: 263d806c052ff0a6afb6f309565f5c104628bf0f89a74b940633713e348d124744323efb725d56a745bc6842dfc93b4afa2bd6006bb514815dfd1d4977450afa
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the account/dashboard controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: https://sass-lang.com/
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the admin/accounts controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: https://sass-lang.com/
@@ -2,10 +2,10 @@ require_dependency "phcdevworks_accounts/application_controller"
2
2
 
3
3
  module PhcdevworksAccounts
4
4
  class Account::DashboardController < ApplicationController
5
-
5
+
6
6
  # Dashboard
7
7
  def index
8
8
  end
9
-
9
+
10
10
  end
11
11
  end
@@ -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
 
@@ -0,0 +1,4 @@
1
+ module PhcdevworksAccounts
2
+ module Account::DashboardHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module PhcdevworksAccounts
2
+ module Admin::AccountsHelper
3
+ end
4
+ end
@@ -1,6 +1,6 @@
1
1
  module PhcdevworksAccounts
2
2
  class User < ApplicationRecord
3
-
3
+
4
4
  # Autogenerate Organization ID
5
5
  before_create :phcdevworks_generate_org_id
6
6
 
@@ -31,6 +31,6 @@ module PhcdevworksAccounts
31
31
  self.role ||= :user
32
32
  end
33
33
  end
34
-
34
+
35
35
  end
36
36
  end
@@ -4,37 +4,37 @@
4
4
  <!-- Sidebar - User Profile Menu -->
5
5
  <ul class="nav">
6
6
  <% if current_user %>
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>
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 System -->
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 System -->
6
+ <!-- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- BreakCrumbs & Header -->
8
+ <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
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
- <!-- BreakCrumbs & Header -->
17
+ <!-- Page Header -->
15
18
 
16
19
  <!-- Page Content -->
17
20
  <div class="row">
18
- <div class="col-lg-12">
19
-
20
- <!-- Panel -->
21
- <div class="panel panel-inverse">
21
+ <div class="col-lg-12">
22
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 -->
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
35
25
 
36
- <!-- Panel - Body -->
37
- <div class="panel-body">
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
- <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |form| %>
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
40
34
 
41
- <%= devise_error_messages! %>
35
+ <!-- New Form -->
36
+ <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |form| %>
42
37
 
43
- <div class="form-group">
44
- <%= form.label :email %>
45
- <%= form.email_field :email, class: "form-control", autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
46
- </div>
38
+ <!-- Devise Error Message -->
39
+ <%= devise_error_messages! %>
40
+ <!-- Devise Error Message -->
47
41
 
48
- <div class="actions">
49
- <%= form.submit "Resend Confirmation Instructions", class: "btn btn-primary block full-width" %>
50
- </div>
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
- <% end %>
51
+ <% end %>
52
+ <!-- New Form -->
53
53
 
54
- </div>
55
- <!-- Panel - Body -->
54
+ </div>
55
+ <!-- Panel - Body -->
56
56
 
57
- </div>
58
- <!-- Panel -->
57
+ </div>
58
+ <!-- Panel -->
59
59
 
60
- </div>
61
- </div>
62
- <!-- Page Content -->
60
+ </div>
61
+ </div>
62
+ <!-- Page Content -->
@@ -1,73 +1,78 @@
1
- <!-- Title System -->
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 System -->
6
+ <!-- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- BreakCrumbs & Header -->
8
+ <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
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
- <!-- BreakCrumbs & Header -->
17
+ <!-- Page Header -->
15
18
 
16
19
  <!-- Page Content -->
17
20
  <div class="row">
18
- <div class="col-lg-12">
19
-
20
- <!-- Panel -->
21
- <div class="panel panel-inverse">
21
+ <div class="col-lg-12">
22
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 -->
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
35
25
 
36
- <!-- Panel - Body -->
37
- <div class="panel-body">
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
- <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
40
34
 
41
- <%= devise_error_messages! %>
42
- <%= form.hidden_field :reset_password_token %>
35
+ <!-- Edit Form -->
36
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
43
37
 
44
- <div class="form-group">
45
- <%= form.label :password, "New password" %>
46
- <% if @minimum_password_length %>
47
- <em>(<%= @minimum_password_length %> characters minimum)</em>
48
- <% end %>
49
- <%= form.password_field :password, autofocus: true, autocomplete: "off" %>
50
- </div>
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
- <div class="form-group">
53
- <%= form.label :password_confirmation, "Confirm new password" %>
54
- <%= form.password_field :password_confirmation, autocomplete: "off" %>
55
- </div>
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
- <div class="actions">
58
- <%= form.submit "Change my password" %>
59
- </div>
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
- <% end %>
59
+ <div class="actions">
60
+ <%= form.submit "Change my password" %>
61
+ </div>
62
62
 
63
- <%= render "devise/shared/links" %>
63
+ <% end %>
64
+ <!-- Edit Form -->
65
+
66
+ <!-- Devise Links -->
67
+ <%= render "devise/shared/links" %>
68
+ <!-- Devise Links -->
64
69
 
65
- </div>
66
- <!-- Panel - Body -->
70
+ </div>
71
+ <!-- Panel - Body -->
67
72
 
68
- </div>
69
- <!-- Panel -->
73
+ </div>
74
+ <!-- Panel -->
70
75
 
71
- </div>
76
+ </div>
72
77
  </div>
73
78
  <!-- Page Content -->
@@ -1,65 +1,65 @@
1
- <!-- Title System -->
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 System -->
6
+ <!-- PHCTitleSEO Title Variables -->
7
7
 
8
- <!-- BreakCrumbs & Header -->
8
+ <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
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
- <!-- BreakCrumbs & Header -->
17
+ <!-- Page Header -->
15
18
 
16
19
  <!-- Page Content -->
17
20
  <div class="row">
18
- <div class="col-lg-12">
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
- <!-- Panel - Body -->
37
- <div class="panel-body">
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
38
25
 
39
- <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |form| %>
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
- <%= devise_error_messages! %>
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
42
34
 
43
- <div class="form-group">
44
- <%= form.label :email %>
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
- <div class="actions">
49
- <%= form.button class: "btn btn-success" do %>
50
- <i class="far fa-paper-plane"></i>
51
- Send Password Reset Instructions
52
- <% end %>
53
- </div>
38
+ <!-- Devise Error Message -->
39
+ <%= devise_error_messages! %>
40
+ <!-- Devise Error Message -->
54
41
 
55
- <% end %>
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
- </div>
58
- <!-- Panel - Body -->
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
- </div>
61
- <!-- Panel -->
54
+ <% end %>
55
+ <!-- New Form -->
62
56
 
63
- </div>
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 System -->
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 System -->
7
+ <!-- PHCTitleSEO Title Variables -->
8
8
 
9
- <!-- BreakCrumbs & Header -->
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
- <!-- BreakCrumbs & Header -->
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't want to change it)</i>
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
- <!-- 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>
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
- </div>
64
-
65
- <label class="control-label">Password Confirmation <span class="text-danger">*</span></label>
66
- <div class="row m-b-15">
67
- <div class="col-md-12">
68
- <%= form.password_field :password, autocomplete: "off", placeholder: "Confirm your Password", class: "form-control" %>
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
- </div>
71
-
72
- <div class="checkbox-css m-b-30">
73
- <div class="form-check checkbox-css m-b-30">
74
- <%= form.check_box :terms_of_service, required: true, class: "form-check-input", id: "agreement_checkbox" %>
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 Form -->
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
- <!-- 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>
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
- </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
- <p class="text-center">
70
- <i class="fal fa-copyright"></i> <strong>PHC</strong>Devworks Accounts <%= Time.now.year %> <br>
71
- Developed with <i class="fas fa-heart hanna_hearts"></i> by
72
- <a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
73
- </p>
74
-
75
- </div>
76
- <!-- Registration Form Content -->
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 Form -->
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 = 'fc3c064ce2237384104a538c191a374e75e7b9f3a7e1e531e0e07a43a6e3693ea4834a40b9618e707c6981588c79fc69b42dc2c4b8b835c23a1564d0e1fa7410' if Rails.env.development?
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 = '17a8fed3dc8f20a7128531632f608dba45e7b136429eba57e85a04576cd28382121417c42fc4c5fa31dc67513d410e0e83c749e474ab4fba46779b665fa0b1bb'
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..32
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 confirm link to confirm your new email address."
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:
@@ -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
@@ -1,7 +1,7 @@
1
- class AddTermsToUsers < ActiveRecord::Migration[6.0]
1
+ class AddTosToUsers < ActiveRecord::Migration[6.0]
2
2
  def change
3
-
3
+
4
4
  add_column :phcdevworks_accounts_users, :terms_of_service, :boolean
5
-
5
+
6
6
  end
7
7
  end
@@ -16,25 +16,18 @@ module PhcdevworksAccounts
16
16
  require "mini_magick"
17
17
 
18
18
  # Frontend Dependencies
19
- require 'gravtastic'
20
- require 'friendly_id'
19
+ require "gravtastic"
20
+ require "friendly_id"
21
21
 
22
22
  # Security Dependencies
23
- require 'devise'
24
- require 'simple_token_authentication'
23
+ require "devise"
24
+ require "simple_token_authentication"
25
25
 
26
26
  # Payment Dependencies
27
- require 'activemerchant'
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
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  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.2.0
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-09-29 00:00:00.000000000 Z
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 for Enterprise.
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/20190701112047_devise_create_phcdevworks_accounts_users.rb
299
- - db/migrate/20190701120003_add_userinfo_to_users.rb
300
- - db/migrate/20190701120028_add_role_to_users.rb
301
- - db/migrate/20190701120045_add_terms_to_users.rb
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.4
331
+ rubygems_version: 3.0.6
326
332
  signing_key:
327
333
  specification_version: 4
328
- summary: Rails 6 Accounts Engine
334
+ summary: Rails 6 - Engine - User Accounts
329
335
  test_files: []