akkounts/app/controllers/settings/security_controller.rb
Râu Cao 96cf534d0a
Refactor settings routes and menu
Use sub controllers/routes for the sections
2022-12-21 18:11:13 +07:00

14 lines
309 B
Ruby

class Settings::SecurityController < SettingsController
def index
end
def reset_password
current_user.send_reset_password_instructions
sign_out current_user
msg = "We have sent you an email with a link to reset your password."
redirect_to check_your_email_path, notice: msg
end
end