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