From 3447b17cdf26a10439ddec19a0f9719dc24a8fdf Mon Sep 17 00:00:00 2001 From: jasder Date: Mon, 22 Mar 2021 14:13:25 +0800 Subject: [PATCH] FIX change password bug --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index c45441b8..07e1c72f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -254,7 +254,7 @@ class UsersController < ApplicationController if sync_params.present? interactor = Gitea::User::UpdateInteractor.call(user.login, sync_params) if interactor.success? - user.update!(password: params[:password]) + user.update!(password: params[:password], is_sync_pwd: true) render_ok else render_error(interactor.error)