Documentation ¶
Index ¶
- func CheckCookie(w http.ResponseWriter, r *http.Request) (string, int)
- func CheckPasswordHash(login, password, hash string) bool
- func GetCookie(w http.ResponseWriter, r *http.Request, user User)
- func HashPassword(login, password string) (string, error)
- func Login(w http.ResponseWriter, r *http.Request)
- func Registration(w http.ResponseWriter, r *http.Request)
- func SuccessRegistration(login, email, password string)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCookie ¶
func CheckPasswordHash ¶
func HashPassword ¶
func Registration ¶
func Registration(w http.ResponseWriter, r *http.Request)
func SuccessRegistration ¶
func SuccessRegistration(login, email, password string)
Types ¶
Click to show internal directories.
Click to hide internal directories.