phcdevworks_accounts 1.5.0 → 1.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03ecdafa28781bde3dc287e2bab2ff9a7f701b03161ebfdcdef41e4cb9877c96
4
- data.tar.gz: 9f0dd146cfb43750a9d320565f088c3b0497e73a0d68cfec3532999237d56685
3
+ metadata.gz: 3bf5ab7275d0c54e6bccbd28e601fb05277a21d79d83d4bb7f492f1f97aab3f8
4
+ data.tar.gz: e6a5645ca48c58817f28b72f8cf5a1b8991eb8c9f0957d8f871da2eb33cff9e3
5
5
  SHA512:
6
- metadata.gz: bd9b6a61b5b05149b8623ac798d8efcb0d49b87feb90903d1e29963e0b28392e02215a0679e512f6ac1e6d829cd2ee853d73e359d621890230e0ecc1916f969a
7
- data.tar.gz: b184feeeb895e097edea4f862bb106f8c2862c7c56a329c11ff66ef96b3ac15867166534da02d6cb41cb951f3d109d8425931e650f95b22c395dac479ed6e295
6
+ metadata.gz: 06bc0a4f6c45418abe7bab92cb80c2a918a0cc930ab9c6038e26cce5ab66092dcf48b71c9dd3219e7e4bb6cc19b7ef51ed653cd9286d889af973cfc8d3238941
7
+ data.tar.gz: 99e0df88c209775b601516bf833616c70655ab4c66e2e55dfe83e309224d178f7a4b1c1a206415a369cdc0ba2d74df250620747d9d239ae1bcebc3254bc11f8b
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Users::ConfirmationsController < Devise::ConfirmationsController
4
+ # GET /resource/confirmation/new
5
+ # def new
6
+ # super
7
+ # end
8
+
9
+ # POST /resource/confirmation
10
+ # def create
11
+ # super
12
+ # end
13
+
14
+ # GET /resource/confirmation?confirmation_token=abcdef
15
+ # def show
16
+ # super
17
+ # end
18
+
19
+ # protected
20
+
21
+ # The path used after resending confirmation instructions.
22
+ # def after_resending_confirmation_instructions_path_for(resource_name)
23
+ # super(resource_name)
24
+ # end
25
+
26
+ # The path used after confirmation.
27
+ # def after_confirmation_path_for(resource_name, resource)
28
+ # super(resource_name, resource)
29
+ # end
30
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
4
+ # You should configure your model like this:
5
+ # devise :omniauthable, omniauth_providers: [:twitter]
6
+
7
+ # You should also create an action method in this controller like this:
8
+ # def twitter
9
+ # end
10
+
11
+ # More info at:
12
+ # https://github.com/plataformatec/devise#omniauth
13
+
14
+ # GET|POST /resource/auth/twitter
15
+ # def passthru
16
+ # super
17
+ # end
18
+
19
+ # GET|POST /users/auth/twitter/callback
20
+ # def failure
21
+ # super
22
+ # end
23
+
24
+ # protected
25
+
26
+ # The path used when OmniAuth fails
27
+ # def after_omniauth_failure_path_for(scope)
28
+ # super(scope)
29
+ # end
30
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Users::PasswordsController < Devise::PasswordsController
4
+ # GET /resource/password/new
5
+ # def new
6
+ # super
7
+ # end
8
+
9
+ # POST /resource/password
10
+ # def create
11
+ # super
12
+ # end
13
+
14
+ # GET /resource/password/edit?reset_password_token=abcdef
15
+ # def edit
16
+ # super
17
+ # end
18
+
19
+ # PUT /resource/password
20
+ # def update
21
+ # super
22
+ # end
23
+
24
+ # protected
25
+
26
+ # def after_resetting_password_path_for(resource)
27
+ # super(resource)
28
+ # end
29
+
30
+ # The path used after sending reset password instructions
31
+ # def after_sending_reset_password_instructions_path_for(resource_name)
32
+ # super(resource_name)
33
+ # end
34
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Users::RegistrationsController < Devise::RegistrationsController
4
+
5
+ # before_action :configure_sign_up_params, only: [:create]
6
+ # before_action :configure_account_update_params, only: [:update]
7
+
8
+ # GET /resource/sign_up
9
+ # def new
10
+ # super
11
+ # end
12
+
13
+ # POST /resource
14
+ # def create
15
+ # super
16
+ # end
17
+
18
+ # GET /resource/edit
19
+ # def edit
20
+ # super
21
+ # end
22
+
23
+ # PUT /resource
24
+ # def update
25
+ # super
26
+ # end
27
+
28
+ # DELETE /resource
29
+ # def destroy
30
+ # super
31
+ # end
32
+
33
+ # GET /resource/cancel
34
+ # Forces the session data which is usually expired after sign
35
+ # in to be expired now. This is useful if the user wants to
36
+ # cancel oauth signing in/up in the middle of the process,
37
+ # removing all OAuth session data.
38
+ # def cancel
39
+ # super
40
+ # end
41
+
42
+ # protected
43
+
44
+ # If you have extra params to permit, append them to the sanitizer.
45
+ # def configure_sign_up_params
46
+ # devise_parameter_sanitizer.permit(:sign_up, keys: [:attribute])
47
+ # end
48
+
49
+ # If you have extra params to permit, append them to the sanitizer.
50
+ # def configure_account_update_params
51
+ # devise_parameter_sanitizer.permit(:account_update, keys: [:attribute])
52
+ # end
53
+
54
+ # The path used after sign up.
55
+ # def after_sign_up_path_for(resource)
56
+ # super(resource)
57
+ # end
58
+
59
+ # The path used after sign up for inactive accounts.
60
+ # def after_inactive_sign_up_path_for(resource)
61
+ # super(resource)
62
+ # end
63
+
64
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Users::SessionsController < Devise::SessionsController
4
+ # before_action :configure_sign_in_params, only: [:create]
5
+
6
+ # GET /resource/sign_in
7
+ # def new
8
+ # super
9
+ # end
10
+
11
+ # POST /resource/sign_in
12
+ # def create
13
+ # super
14
+ # end
15
+
16
+ # DELETE /resource/sign_out
17
+ # def destroy
18
+ # super
19
+ # end
20
+
21
+ # protected
22
+
23
+ # If you have extra params to permit, append them to the sanitizer.
24
+ # def configure_sign_in_params
25
+ # devise_parameter_sanitizer.permit(:sign_in, keys: [:attribute])
26
+ # end
27
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Users::UnlocksController < Devise::UnlocksController
4
+ # GET /resource/unlock/new
5
+ # def new
6
+ # super
7
+ # end
8
+
9
+ # POST /resource/unlock
10
+ # def create
11
+ # super
12
+ # end
13
+
14
+ # GET /resource/unlock?unlock_token=abcdef
15
+ # def show
16
+ # super
17
+ # end
18
+
19
+ # protected
20
+
21
+ # The path used after sending unlock password instructions
22
+ # def after_sending_unlock_instructions_path_for(resource)
23
+ # super(resource)
24
+ # end
25
+
26
+ # The path used after unlocking the resource
27
+ # def after_unlock_path_for(resource)
28
+ # super(resource)
29
+ # end
30
+ end
data/config/routes.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  PhcdevworksAccounts::Engine.routes.draw do
2
2
 
3
3
  # User Routes
4
- devise_for :users, class_name: "PhcdevworksAccounts::User", module: :devise
4
+ devise_for :users, {
5
+ class_name: "PhcdevworksAccounts::User",
6
+ module: :devise,
7
+ controllers: { registrations: "users/registrations"}
8
+ }
5
9
 
6
10
  # User Dashboard
7
11
  get 'dashboard', to: 'accounts/dashboard#index'
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-27 00:00:00.000000000 Z
11
+ date: 2020-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -142,6 +142,20 @@ dependencies:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
144
  version: 1.0.6
145
+ - !ruby/object:Gem::Dependency
146
+ name: wicked
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '1.3'
152
+ type: :runtime
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '1.3'
145
159
  - !ruby/object:Gem::Dependency
146
160
  name: friendly_id
147
161
  requirement: !ruby/object:Gem::Requirement
@@ -288,6 +302,12 @@ files:
288
302
  - app/controllers/phcdevworks_accounts/account/dashboard_controller.rb
289
303
  - app/controllers/phcdevworks_accounts/admin/accounts_controller.rb
290
304
  - app/controllers/phcdevworks_accounts/application_controller.rb
305
+ - app/controllers/users/confirmations_controller.rb
306
+ - app/controllers/users/omniauth_callbacks_controller.rb
307
+ - app/controllers/users/passwords_controller.rb
308
+ - app/controllers/users/registrations_controller.rb
309
+ - app/controllers/users/sessions_controller.rb
310
+ - app/controllers/users/unlocks_controller.rb
291
311
  - app/helpers/phcdevworks_accounts/account/dashboard_helper.rb
292
312
  - app/helpers/phcdevworks_accounts/admin/accounts_helper.rb
293
313
  - app/helpers/phcdevworks_accounts/application_helper.rb