Documentation
¶
Index ¶
Constants ¶
View Source
const PASSWORD_MAX_LENGTH = 24
View Source
const PASSWORD_MIN_LENGTH = 8
Variables ¶
This section is empty.
Functions ¶
func GetIssuerFromCookie ¶
GetIssuerFromCookie is a helper function that takes a request and tht JWT_SECRET_TOKEN to retrieve the issuer and an error if any occured.
func PasswordIsValid ¶
PasswordIsValid checks for a password validity.
Returns false if:
- the password is too short (less than 8 characters)
- the password is too long (more than 24 characters)
- the password contains no upper case character
- the password contains no lower case character
- the password contains no number
- the password contains no special character
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.