Added login and logout
This commit is contained in:
@@ -2,12 +2,13 @@ package models
|
||||
|
||||
type User struct {
|
||||
BaseModel
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Email string `json:"email"`
|
||||
Avatar string `json:"avatar"`
|
||||
IsActive bool `json:"isActive" gorm:"default:false"`
|
||||
CompanyID uint `json:"companyId"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Email string `json:"email"`
|
||||
Avatar string `json:"avatar"`
|
||||
IsActive bool `json:"isActive" gorm:"default:false"`
|
||||
CompanyID uint `json:"companyId"`
|
||||
LoginAttempts int `gorm:"default:0"`
|
||||
}
|
||||
|
||||
type ResetPasswordRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user