()
| 10 | ) |
| 11 | |
| 12 | func 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 | |
| 29 | func createFirstUserForAuthentication(username, password string) (token string, err error) { |
| 30 |
no test coverage detected