Browse Source

FIX change password bug

pull/57/head
jasder 5 years ago
parent
commit
3447b17cdf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb View File

@@ -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)


Loading…
Cancel
Save