Browse Source

fixed 同步gitea密码状态is_sync_pwd更新

pull/313/head
xiaoxiaoqiong 4 years ago
parent
commit
8781720f31
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/concerns/login_helper.rb

+ 1
- 0
app/controllers/concerns/login_helper.rb View File

@@ -116,6 +116,7 @@ module LoginHelper
interactor = Gitea::User::UpdateInteractor.call(user.login, sync_params.merge(hash))
if interactor.success?
Rails.logger.info "########_ login is #{user.login} sync_pwd_to_gitea success _########"
user.update_column(:is_sync_pwd, true)
true
else
Rails.logger.info "########_ login is #{user.login} sync_pwd_to_gitea fail!: #{interactor.error}"


Loading…
Cancel
Save