2016-09-24 11:00:46 +08:00
|
|
|
# frozen_string_literal: true
|
2017-01-23 19:30:13 -05:00
|
|
|
module Users
|
|
|
|
class PasswordsController < Devise::PasswordsController
|
|
|
|
protected
|
2016-07-26 08:14:23 +08:00
|
|
|
|
2017-01-23 19:30:13 -05:00
|
|
|
def after_resetting_password_path_for(resource)
|
|
|
|
signed_in_root_path(resource)
|
|
|
|
end
|
2016-09-15 07:18:15 +08:00
|
|
|
|
2017-01-23 19:30:13 -05:00
|
|
|
def after_sending_reset_password_instructions_path_for(_resource_name)
|
|
|
|
sign_in_path if is_navigational_format?
|
|
|
|
end
|
2016-09-15 07:18:15 +08:00
|
|
|
end
|
2015-09-19 16:26:34 +08:00
|
|
|
end
|