Merge branch 'dev_military' of https://git.trustie.net/jasder/forgeplus into dev_military

This commit is contained in:
vilet.yy 2021-03-05 17:03:01 +08:00
commit 622dcbaf4f
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ module RegisterHelper
user.password = password
user.platform = platform
user.activate
return unless user.valid?
interactor = Gitea::RegisterInteractor.call({username: username, email: email, password: password})
if interactor.success?