1
0
Fork 0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-11-08 22:20:05 +00:00
cloudkeys-go/sessionData.go
Knut Ahlers b4793cbab5
Reimplement Go server as API-Server
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-11-04 11:50:03 +01:00

17 lines
430 B
Go

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),
}
}