Documentation ¶
Index ¶
- func CheckBCryptPassword(encryptedPassword string, plainPassword string) bool
- func GetUnauthenticatedError() error
- func GetUnauthorisedError() error
- func HasLoginPermissions(u *models.User) bool
- func HasPermissionAsParent(ctx context.Context) bool
- func HasPostWritePermission(ctx context.Context, p models.Post) bool
- func IsAuthenticated(ctx context.Context) bool
- func NewBCryptPassword(plain string) string
- func ReadUserIDFromContext(ctx context.Context) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBCryptPassword ¶
func GetUnauthenticatedError ¶
func GetUnauthenticatedError() error
func GetUnauthorisedError ¶
func GetUnauthorisedError() error
func HasLoginPermissions ¶
func HasPermissionAsParent ¶
func IsAuthenticated ¶
func NewBCryptPassword ¶
func ReadUserIDFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.