MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / activatedSystemAuthentication

Function activatedSystemAuthentication

src/authentication.go:12–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func activatedSystemAuthentication() (err error) {
13
14 err = authentication.Init(System.Folder.Config, 60)
15 if err != nil {
16 return
17 }
18
19 var defaults = make(map[string]interface{})
20 defaults["authentication.web"] = false
21 defaults["authentication.pms"] = false
22 defaults["authentication.xml"] = false
23 defaults["authentication.api"] = false
24 err = authentication.SetDefaultUserData(defaults)
25
26 return
27}
28
29func createFirstUserForAuthentication(username, password string) (token string, err error) {
30

Callers 1

InitFunction · 0.85

Calls 2

InitFunction · 0.92
SetDefaultUserDataFunction · 0.92

Tested by

no test coverage detected