aboutsummaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/auth.go b/auth.go
index 7b66f5f..ff17bc5 100644
--- a/auth.go
+++ b/auth.go
@@ -8,8 +8,13 @@ import (
)
var authIface authBackend
-var ErrAuthBackendExists = errors.New("auth backend already set")
-var ErrInvalidSRPHeader = errors.New("encoded password is not SRP")
+
+var (
+ ErrAuthBackendExists = errors.New("auth backend already set")
+ ErrBanNotSupported = errors.New("auth backend does not support bans")
+ ErrInvalidSRPHeader = errors.New("encoded password is not SRP")
+ ErrLastSrvNotSupported = errors.New("auth backend does not support server information")
+)
type user struct {
name string