@@ -20,7 +20,7 class AccountController < ApplicationController | |||||
20 | include CustomFieldsHelper |
|
20 | include CustomFieldsHelper | |
21 |
|
21 | |||
22 | # prevents login action to be filtered by check_if_login_required application scope filter |
|
22 | # prevents login action to be filtered by check_if_login_required application scope filter | |
23 |
skip_before_ |
|
23 | skip_before_action :check_if_login_required, :check_password_change | |
24 |
|
24 | |||
25 | # Overrides ApplicationController#verify_authenticity_token to disable |
|
25 | # Overrides ApplicationController#verify_authenticity_token to disable | |
26 | # token verification on openid callbacks |
|
26 | # token verification on openid callbacks |
@@ -18,7 +18,7 | |||||
18 | class MyController < ApplicationController |
|
18 | class MyController < ApplicationController | |
19 | before_action :require_login |
|
19 | before_action :require_login | |
20 | # let user change user's password when user has to |
|
20 | # let user change user's password when user has to | |
21 |
skip_before_ |
|
21 | skip_before_action :check_password_change, :only => :password | |
22 |
|
22 | |||
23 | require_sudo_mode :account, only: :post |
|
23 | require_sudo_mode :account, only: :post | |
24 | require_sudo_mode :reset_rss_key, :reset_api_key, :show_api_key, :destroy |
|
24 | require_sudo_mode :reset_rss_key, :reset_api_key, :show_api_key, :destroy |
General Comments 0
You need to be logged in to leave comments.
Login now