Browse Source

fixed 修改密码接口

pull/313/head
“xxq250” 3 years ago
parent
commit
ac8959f36f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/controllers/accounts_controller.rb

+ 3
- 1
app/controllers/accounts_controller.rb View File

@@ -111,7 +111,9 @@ class AccountsController < ApplicationController

sync_params = {
password: params[:password].to_s,
email: @user.mail
email: @user.mail,
login_name: @user.login,
source_id: 0
}

interactor = Gitea::User::UpdateInteractor.call(@user.login, sync_params)


Loading…
Cancel
Save