Add flag for creating pre-confirmed users
This commit is contained in:
parent
f85b7f4f62
commit
1a470cf1c8
@ -5,6 +5,7 @@ class CreateAccount < ApplicationService
|
||||
@email = args[:email]
|
||||
@password = args[:password]
|
||||
@invitation = args[:invitation]
|
||||
@confirmed = args[:confirmed]
|
||||
end
|
||||
|
||||
def call
|
||||
@ -26,7 +27,8 @@ class CreateAccount < ApplicationService
|
||||
ou: @domain,
|
||||
email: @email,
|
||||
password: @password,
|
||||
password_confirmation: @password
|
||||
password_confirmation: @password,
|
||||
confirmed_at: @confirmed ? DateTime.now : nil
|
||||
)
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user