MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / DelAdminCacheOnline

Function DelAdminCacheOnline

cmd/user.go:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func DelAdminCacheOnline() {
16 admin, err := op.GetAdmin()
17 if err != nil {
18 utils.Log.Errorf("[del_admin_cache] get admin error: %+v", err)
19 return
20 }
21 DelUserCacheOnline(admin.Username)
22}
23
24func DelUserCacheOnline(username string) {
25 client := resty.New().SetTimeout(1 * time.Second).SetTLSClientConfig(&tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify})

Callers 2

cancel2FA.goFile · 0.85
setAdminPasswordFunction · 0.85

Calls 2

GetAdminFunction · 0.92
DelUserCacheOnlineFunction · 0.85

Tested by

no test coverage detected