Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CheckStatusinSession(id int64) bool
- func HashPassword(password string) (string, error)
- func Updatetenant(token string, tenantid int) bool
- type User
- func (user *User) Authenticate() bool
- func (user *User) Checkauthname() bool
- func (user *User) Create() (int64, error)
- func (user *User) Createwithoutpassword() (int64, error)
- func (c *User) Customerauthenticate(id int64) (*User, bool, error)
- func (user *User) GetByUserId(id int64) (*User, error)
- func (user *User) GetUserIdByUsername(username string) (int, error)
- func (user *User) InsertToken(token string)
- func (user *User) InsertUserintoProfile() int64
- func (user *User) LoginResponse(id int64) (*User, error)
- func (user *User) ResetPassword() bool
- func (user *User) RetrieveToken(c *gin.Context) bool
- func (u *User) Updateappuser() (bool, error)
- func (u *User) Updateuserprofile() (bool, error)
- func (user *User) UserAuthentication(id int64) (*User, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPassword hash compares raw password with it's hashed values
func CheckStatusinSession ¶
func HashPassword ¶
HashPassword hashes given password
func Updatetenant ¶ added in v1.0.6
Types ¶
type User ¶
type User struct {
ID int `json:"id"`
FirstName string `json:"firstname"`
LastName string `json:"lastname"`
Password string `json:"password"`
Email string `json:"email"`
Mobile string `json:"mobile"`
CreatedDate string `json:"created"`
Status string `json:"status"`
Roleid int `json:"roleid"`
Configid int `json:"configid"`
Referenceid int `json:"referenceid"`
LocationId int `json:"locationid"`
Moduleid int `json:"moduleid"`
Packageid int `json:"packageid"`
Modulename string `json:"modulename"`
Tenantname string `json:"tenantname"`
Opentime string `json:"opentime"`
Closetime string `json:"closetime"`
From string `json:"from"`
}
func GetAllUsers ¶
func GetAllUsers() []User
func (*User) Authenticate ¶
func (*User) Checkauthname ¶ added in v1.0.6
func (*User) Createwithoutpassword ¶ added in v1.0.6
func (*User) Customerauthenticate ¶ added in v1.0.6
func (*User) GetUserIdByUsername ¶
func (*User) InsertToken ¶
func (*User) InsertUserintoProfile ¶
func (*User) LoginResponse ¶ added in v1.0.3
func (*User) ResetPassword ¶
func (*User) Updateappuser ¶ added in v1.0.6
func (*User) Updateuserprofile ¶ added in v1.0.6
Click to show internal directories.
Click to hide internal directories.