Initial commit
This commit is contained in:
17
pkg/auth/errors.go
Normal file
17
pkg/auth/errors.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package auth
|
||||
|
||||
type authError struct {
|
||||
InnerError error
|
||||
}
|
||||
|
||||
type ErrorUnauthorized authError
|
||||
|
||||
func (eu *ErrorUnauthorized) Error() string {
|
||||
return "Invalid username or password"
|
||||
}
|
||||
|
||||
type ErrorForbidden authError
|
||||
|
||||
func (ef *ErrorForbidden) Error() string {
|
||||
return "Access is denied"
|
||||
}
|
||||
Reference in New Issue
Block a user