Fix: Baguette::Configuration::Auth in the wrong file.
This commit is contained in:
parent
43668b8e5d
commit
cf9c6220e6
2 changed files with 14 additions and 14 deletions
16
src/authd.cr
16
src/authd.cr
|
@ -1,11 +1,23 @@
|
||||||
require "json"
|
require "json"
|
||||||
|
|
||||||
require "jwt"
|
require "jwt"
|
||||||
|
|
||||||
require "ipc"
|
require "ipc"
|
||||||
|
|
||||||
|
require "baguette-crystal-base"
|
||||||
require "./user.cr"
|
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
|
class AuthD::Exception < Exception
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
12
src/main.cr
12
src/main.cr
|
@ -14,18 +14,6 @@ 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…
Add table
Reference in a new issue