Improve signin messaging
This commit is contained in:
parent
b4e6bac566
commit
72a8ed5c16
7 changed files with 110 additions and 20 deletions
|
|
@ -23,6 +23,12 @@ import (
|
|||
type NoUserError struct{}
|
||||
|
||||
func (e NoUserError) Error() string { return "That user does not exist" }
|
||||
func (e NoUserError) Is(target error) bool {
|
||||
if _, ok := target.(NoUserError); ok {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type User struct {
|
||||
Active bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue