Refactor settings routes and menu

Use sub controllers/routes for the sections
This commit is contained in:
Râu Cao
2022-12-21 18:10:50 +07:00
parent c5fa38fe3d
commit 96cf534d0a
9 changed files with 44 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
class Settings::ProfileController < SettingsController
def index
end
end

View File

@@ -0,0 +1,13 @@
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