package
Version:
v0.0.0-...-f30c268
Opens a new window with list of versions in this module.
Published: Dec 29, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func VerifyUser(user, dbuser *User) bool
type Session struct {
Id int64 `json:"-"`
UserId int64 `json:"uid"`
RefreshToken string `json:"refreshToken"`
UserAgent string `json:"ua"`
FingerPrint string `json:"fingerprint"`
Ip string `json:"ip"`
ExpiresAt time.Time `json:"expiresAt"`
CreatedAt time.Time `json:"createdAt"`
}
type User struct {
Id int64
User string `form:"user" json:"user" xml:"user" binding:"required"`
Password string `form:"password" json:"password" xml:"password" binding:"required"`
Email string `form:"email" json:"email" xml:"email"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.