Browse Source

Merge branch 'standalone_develop' into pre_trustie_server

pull/306/head
xiaoxiaoqiong 4 years ago
parent
commit
b2e7491ade
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/users_controller.rb

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

@@ -378,6 +378,7 @@ class UsersController < ApplicationController
interactor = Gitea::RegisterInteractor.call({username: login, email: email, password: password})
if interactor.success?
gitea_user = interactor.result
Rails.logger.info("Gitea::RegisterInteractor.call result====== #{gitea_user}")
result = Gitea::User::GenerateTokenService.call(login, password)
user.gitea_token = result['sha1']
user.gitea_uid = gitea_user[:body]['id']


Loading…
Cancel
Save