MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Set

Method Set

core/init/auth/mfa_session.go:41–47  ·  view source on GitHub ↗
(name, entrance, ip string)

Source from the content-addressed store, hash-verified

39}
40
41func (s *mfaSessionStore) Set(name, entrance, ip string) string {
42 return s.store.Set(mfaSession{
43 Name: name,
44 Entrance: entrance,
45 IP: ip,
46 })
47}
48
49func (s *mfaSessionStore) Get(sessionID string) (mfaSession, bool) {
50 return s.store.Get(sessionID)

Callers 5

InitFunction · 0.45
setWebStaticFunction · 0.45
setStaticResourceFunction · 0.45
ProxyFunction · 0.45
checkSessionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected