Fix: Baguette::Configuration::Auth in the wrong file.
This commit is contained in:
parent
43668b8e5d
commit
cf9c6220e6
16
src/authd.cr
16
src/authd.cr
@ -1,11 +1,23 @@
|
||||
require "json"
|
||||
|
||||
require "jwt"
|
||||
|
||||
require "ipc"
|
||||
|
||||
require "baguette-crystal-base"
|
||||
require "./user.cr"
|
||||
|
||||
# Allows get configuration from a provided file.
|
||||
# See Baguette::Configuration::Base.get
|
||||
class Baguette::Configuration
|
||||
class Auth < Base
|
||||
include YAML::Serializable
|
||||
|
||||
property login : String?
|
||||
property pass : String?
|
||||
property shared_key : String?
|
||||
property shared_key_file : String?
|
||||
end
|
||||
end
|
||||
|
||||
class AuthD::Exception < Exception
|
||||
end
|
||||
|
||||
|
12
src/main.cr
12
src/main.cr
@ -14,18 +14,6 @@ require "./authd.cr"
|
||||
|
||||
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
|
||||
property registrations_allowed = false
|
||||
property require_email = false
|
||||
|
Loading…
Reference in New Issue
Block a user