Revert "auto-confirm users to compensate for lack of SMTP relay"

This reverts commit ee2efd0be3
This commit is contained in:
admin 2019-09-20 02:32:34 +00:00
parent fc372311f4
commit 0d2c172365

View File

@ -8,8 +8,6 @@ class AppSignUpService < BaseService
account_params = params.slice(:username) 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 = 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, Doorkeeper::AccessToken.create!(application: app,
resource_owner_id: user.id, resource_owner_id: user.id,
scopes: app.scopes, scopes: app.scopes,