Baguette::Configuration::Auth
parent
9a921b6ac7
commit
43668b8e5d
12
src/main.cr
12
src/main.cr
|
@ -14,6 +14,18 @@ require "./authd.cr"
|
||||||
|
|
||||||
extend AuthD
|
extend AuthD
|
||||||
|
|
||||||
|
# Allows get configuration from a provided file.
|
||||||
|
# See Baguette::Configuration::Base.get
|
||||||
|
class Baguette::Configuration::Auth < Baguette::Configuration::Base
|
||||||
|
include YAML::Serializable
|
||||||
|
|
||||||
|
property login : String?
|
||||||
|
property pass : String?
|
||||||
|
property shared_key : String?
|
||||||
|
property shared_key_file : String?
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
class AuthD::Service
|
class AuthD::Service
|
||||||
property registrations_allowed = false
|
property registrations_allowed = false
|
||||||
property require_email = false
|
property require_email = false
|
||||||
|
|
Loading…
Reference in New Issue