 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func CheckPasswordHash(password, hash string) bool
- func HasAnyRole(user *db.PdmUser, roles ...string) bool
- func HashPassword(password string) (string, error)
- func IsAdmin(user *db.PdmUser) bool
- func IsProjectLead(user *db.PdmUser) bool
- func IsSeniorDesigner(user *db.PdmUser) bool
- func IsValidSession(sessionValue string, repo *db.UserRepo) bool
- func IsValidUser(loginname, password string, repo *db.UserRepo) bool
- type Login
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var Users = map[string]Login{}
    temporary Key is loginname
Functions ¶
func CheckPasswordHash ¶
func HasAnyRole ¶
HasAnyRole checks if the user has at least one of the given roles (case-insensitive)
func HashPassword ¶
func IsProjectLead ¶
func IsSeniorDesigner ¶
Types ¶
 Click to show internal directories. 
   Click to hide internal directories.