mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-08 22:20:05 +00:00
17 lines
430 B
Go
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),
|
|
}
|
|
}
|