Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditProfile ¶
type RegistrationForm ¶
type RegistrationForm struct { Username string `form:"username" binding:"required"` Email string `form:"email" binding:"required"` PasswordA string `form:"passworda" binding:"required"` PasswordB string `form:"passwordb" binding:"required"` }
func (*RegistrationForm) CheckPasswords ¶
func (r *RegistrationForm) CheckPasswords() bool
type User ¶
type User struct { gorm.Model UserSession Username string `gorm:"type:varchar(32);UNIQUE"` Email string `gorm:"type:varchar(256);UNIQUE"` Password string `gorm:"type:varchar(128)"` AboutMe string `gorm:"type:varchar(512)"` LastSeen string `gorm:"type:varchar(20)"` }
func (*User) CheckPassword ¶
func (*User) SetPassword ¶
type UserSession ¶
Click to show internal directories.
Click to hide internal directories.