FIX valid user before register action
This commit is contained in:
parent
8942c694c4
commit
50928f82c0
|
@ -9,6 +9,8 @@ module RegisterHelper
|
|||
user.platform = platform
|
||||
user.activate
|
||||
|
||||
return unless user.valid?
|
||||
|
||||
interactor = Gitea::RegisterInteractor.call({username: username, email: email, password: password})
|
||||
if interactor.success?
|
||||
gitea_user = interactor.result
|
||||
|
|
Loading…
Reference in New Issue