FIX change password bug
This commit is contained in:
parent
0079255e98
commit
3447b17cdf
|
@ -254,7 +254,7 @@ class UsersController < ApplicationController
|
||||||
if sync_params.present?
|
if sync_params.present?
|
||||||
interactor = Gitea::User::UpdateInteractor.call(user.login, sync_params)
|
interactor = Gitea::User::UpdateInteractor.call(user.login, sync_params)
|
||||||
if interactor.success?
|
if interactor.success?
|
||||||
user.update!(password: params[:password])
|
user.update!(password: params[:password], is_sync_pwd: true)
|
||||||
render_ok
|
render_ok
|
||||||
else
|
else
|
||||||
render_error(interactor.error)
|
render_error(interactor.error)
|
||||||
|
|
Loading…
Reference in New Issue