User guards

Fixes #14
This commit is contained in:
Matthew Dillon 2015-10-13 10:48:53 -07:00
parent 3bfb6fe2b7
commit 978a6d09b2
2 changed files with 27 additions and 0 deletions

View file

@ -13,4 +13,6 @@ var (
ErrInvalidEmailOrPassword = errors.New("Invalid email or password")
// ErrEmailAddressTaken when email already registered.
ErrEmailAddressTaken = errors.New("Email address is already registered")
// ErrUserForbidden when user not allowed to view a resource
ErrUserForbidden = errors.New("User ccount not authorized")
)