Documentation ¶
Index ¶
- func Update(db *gorp.DbMap, u User) error
- type AuthProvider
- type SmsSender
- type User
- func (u *User) CheckLogin(db *gorp.DbMap, login string) (User, error)
- func (u *User) Confirm(db *gorp.DbMap, code int64, userid int64) error
- func (u *User) NewPassword(db *gorp.DbMap, password string) error
- func (u *User) Restore(db *gorp.DbMap, s SmsSender, login string) (UserConfirmation, error)
- func (u *User) SignIn(db *gorp.DbMap, password, login string) (*User, error)
- func (u *User) SignUp(db *gorp.DbMap, s SmsSender, firstname, lastname, phone, password string) error
- func (u User) String() string
- type UserConfirmation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthProvider ¶
func IsUserFromSocialNetwork ¶
type User ¶
type User struct { Id int64 Uuid string FirstName string LastName string Patronymic string Sex int64 NickName string Photo int64 Phone string Email string Address string Registered bool `json:"-"` HashedPassword []byte `json:"-"` Permission int64 Created int64 Updated int64 Deleted int64 Version int64 }
Click to show internal directories.
Click to hide internal directories.