feat(auth): demo-логин ≥6 симв, MultiAuthenticator, UUID v5, v1.3.26

This commit is contained in:
“Naeel”
2026-05-02 19:45:10 +04:00
parent 94a4eea50b
commit dbd35e11ff
5 changed files with 94 additions and 12 deletions
+7 -3
View File
@@ -39,11 +39,15 @@ func main() {
testMode := os.Getenv("FISSION_TEST_MODE") == "true"
var authenticator auth.Authenticator
var jwtAuth auth.Authenticator
if testMode {
authenticator = &auth.TestAuthenticator{}
jwtAuth = &auth.TestAuthenticator{}
} else {
authenticator = auth.NewDeckAuthenticator(auth.DefaultDeckAPIs, nil)
jwtAuth = auth.NewDeckAuthenticator(auth.DefaultDeckAPIs, nil)
}
authenticator := &auth.MultiAuthenticator{
JWT: jwtAuth,
Demo: &auth.DemoAuthenticator{},
}
srv := api.NewServer(api.Config{