18 lines
284 B
Go
18 lines
284 B
Go
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"
|
|
}
|