项目搜索增加用户信息搜索

This commit is contained in:
“xxq250” 2022-11-15 10:47:14 +08:00
parent 64fdfd3b01
commit b05e08a1c5
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ class AccountsController < ApplicationController
Register::Form.new(register_params).validate!
user = Users::RegisterService.call(register_params)
user.mail = "#{user.login}@example.org" if user.mail.blank?
password = register_params[:password].strip
# gitea用户注册, email, username, password