Fix: Baguette::Configuration::Auth in the wrong file.

rewrite
Karchnu 2020-10-23 19:16:49 +02:00
parent 43668b8e5d
commit cf9c6220e6
2 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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