FIX valid user before register action
This commit is contained in:
parent
59257b1caa
commit
0c2507b1e9
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue