1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-09 22:50:05 +00:00
cloudkeys-go/sessionData.go

18 lines
430 B
Go
Raw Permalink Normal View History

package main
type sessionData struct {
// The current state of all logged in users
Users map[string]userState
// MFA secrets are encrypted with users password, we need to
// store them inside the encrypted session until the user verified
// themselves
MFACache map[string]string
}
func newSessionData() *sessionData {
return &sessionData{
Users: make(map[string]userState),
MFACache: make(map[string]string),
}
}