auto-confirm users to compensate for lack of SMTP relay
This commit is contained in:
parent
c9811c1a46
commit
ee2efd0be3
|
@ -8,6 +8,8 @@ class AppSignUpService < BaseService
|
|||
account_params = params.slice(:username)
|
||||
user = User.create!(user_params.merge(created_by_application: app, password_confirmation: user_params[:password], account_attributes: account_params))
|
||||
|
||||
user.confirm!
|
||||
|
||||
Doorkeeper::AccessToken.create!(application: app,
|
||||
resource_owner_id: user.id,
|
||||
scopes: app.scopes,
|
||||
|
|
Loading…
Reference in New Issue