Documentation ¶
Index ¶
Constants ¶
View Source
const UserSessionVar = "GoraddUserId" // Change this to a unique session variable name for your application
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
CurrentUser returns the currently logged in user object, or nil if no user is logged in. It will cache the user information and store it in the context for future reference in the current request, so that the database does not need to be queried each time. It gets the current user out of the sesssion. If there is no current user, it returns nil.
func SetCurrentUserID ¶
func ValidatePassword ¶
ValidatePassword enforces the rules about what makes up a good enough password for our system We are using a 3rd party library to evaluate password strength. This same library is available in javascript, but this is a server side check.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.