New "service_name" attribute in the configuration file.
parent
2b33f362dd
commit
a64a3291ce
|
@ -5,13 +5,14 @@ extend AuthD
|
|||
|
||||
class Baguette::Configuration
|
||||
class Auth < IPC
|
||||
property service_name : String = "auth"
|
||||
property recreate_indexes : Bool = false
|
||||
property storage : String = "storage"
|
||||
property registrations : Bool = false
|
||||
property require_email : Bool = false
|
||||
property activation_template : String = "email-activation"
|
||||
property recovery_template : String = "email-recovery"
|
||||
property mailer_exe : String = "mailer"
|
||||
property mailer_exe : String = "/usr/local/bin/mailer"
|
||||
property read_only_profile_keys : Array(String) = Array(String).new
|
||||
|
||||
property print_password_recovery_parameters : Bool = false
|
||||
|
@ -57,7 +58,7 @@ class AuthD::Service < IPC
|
|||
end
|
||||
|
||||
self.timer @configuration.ipc_timer
|
||||
self.service_init "auth"
|
||||
self.service_init @configuration.service_name
|
||||
end
|
||||
|
||||
def obsolete_hash_password(password : String) : String
|
||||
|
@ -173,7 +174,7 @@ class AuthD::Service < IPC
|
|||
end
|
||||
|
||||
def run
|
||||
Baguette::Log.title "Starting authd"
|
||||
Baguette::Log.title "Starting #{@configuration.service_name}"
|
||||
|
||||
Baguette::Log.info "(mailer) Email activation template: #{@configuration.activation_template}"
|
||||
Baguette::Log.info "(mailer) Email recovery template: #{@configuration.recovery_template}"
|
||||
|
|
Loading…
Reference in New Issue