Merge branch 'educoder_server' into dev_educoder
This commit is contained in:
commit
6c4058cde5
|
@ -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