auto-confirm users to compensate for lack of SMTP relay

This commit is contained in:
Rob Colbert 2019-08-21 01:01:48 -04:00
parent c9811c1a46
commit ee2efd0be3
1 changed files with 2 additions and 0 deletions

View File

@ -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,