Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleUserData ¶
type User ¶
type User struct { gorm.Model Name string `json:"name"` Username string `json:"username" gorm:"unique;default:null"` Email string `json:"email" gorm:"unique; not null;default:null"` Password string `json:"-" gorm:"default:null"` // FIXME: should be not null Picture string `json:"picture" gorm:"default:null"` LoginMethod string `json:"login_method" gorm:"default:null"` EmailVerified bool `json:"email_verified" gorm:"default:false"` }
@Description User account
func (*User) EncryptPassword ¶
func (*User) IsPasswordMatch ¶
func (*User) IsValidEmail ¶
Click to show internal directories.
Click to hide internal directories.