fixed critical login TOTP bypass bug! whoops!!!!!
This commit is contained in:
parent
2e93c3c5e5
commit
1efe52a8cb
7 changed files with 166 additions and 99 deletions
|
@ -6,12 +6,13 @@ import (
|
|||
)
|
||||
|
||||
type Session struct {
|
||||
Token string `json:"token" db:"token"`
|
||||
Token string `json:"-" db:"token"`
|
||||
UserAgent string `json:"user_agent" db:"user_agent"`
|
||||
CreatedAt time.Time `json:"created_at" db:"created_at"`
|
||||
ExpiresAt time.Time `json:"expires_at" db:"expires_at"`
|
||||
ExpiresAt time.Time `json:"-" db:"expires_at"`
|
||||
|
||||
Account *Account `json:"-" db:"account"`
|
||||
Account *Account `json:"-" db:"-"`
|
||||
AttemptAccount *Account `json:"-" db:"-"`
|
||||
Message sql.NullString `json:"-" db:"message"`
|
||||
Error sql.NullString `json:"-" db:"error"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue