Documentation ¶
Overview ¶
MVC models
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginCred ¶
type LoginCred string
a hashed+salted login cred
func NewLoginCred ¶
generate a new login cred, generates random salt and stores as hashed
type User ¶
type User struct { // name of this user, aka the name part of name@ourb32address.b32.i2p Name string `xorm:"pk"` // login credential, if empty string login is not allowed Login string `xorm:"login"` // path to maildir MailDirPath string `xorm:"maildir"` }
mail user info
func (*User) CheckLogin ¶
check if user's login is correct given password
Click to show internal directories.
Click to hide internal directories.