mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
init project
This commit is contained in:
14
app/controllers/users/passwords_controller.rb
Normal file
14
app/controllers/users/passwords_controller.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class Users::PasswordsController < Users::BaseAccountController
|
||||
def update
|
||||
Users::UpdatePasswordService.call(observed_user, update_params)
|
||||
render_ok
|
||||
rescue Users::UpdatePasswordService::Error => ex
|
||||
render_error(ex.message)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def update_params
|
||||
params.permit(:password, :old_password)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user