Replace hardcoded domains with primary domain setting

This commit is contained in:
Râu Cao
2023-03-18 13:43:23 +07:00
parent 34e4cec503
commit 589e46bc63
8 changed files with 9 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
class CreateAccount < ApplicationService
def initialize(args)
@username = args[:username]
@domain = args[:ou] || "kosmos.org"
@domain = args[:ou] || Setting.primary_domain
@email = args[:email]
@password = args[:password]
@invitation = args[:invitation]