Added bcrypt cost
This commit is contained in:
parent
26edac76ce
commit
2c95bc0a0f
@ -3,6 +3,9 @@
|
||||
secret = "a key"
|
||||
# Disable registration
|
||||
disabled = false
|
||||
# bcrypt cost
|
||||
# https://pkg.go.dev/golang.org/x/crypto/bcrypt#pkg-constants
|
||||
cost = 10
|
||||
|
||||
[server]
|
||||
# Listener address
|
||||
|
@ -26,6 +26,7 @@ type Config struct {
|
||||
type Auth struct {
|
||||
Secret string `toml:"secret"`
|
||||
Disabled bool `toml:"disabled"`
|
||||
Cost int `toml:"cost"`
|
||||
}
|
||||
|
||||
// Server configuration
|
||||
|
Loading…
Reference in New Issue
Block a user