aboutsummaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-07-16 16:05:18 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-07-16 16:05:18 +0200
commit36bcdbd3fd50dd9d44d753d0bb3b7f89b28a74cd (patch)
tree893f3a6b8284a01bd23d0117d29e67cef7963f5c /auth.go
parent1a1ce068eea1d8200a748bc0b9e8a02e6d12c242 (diff)
add rudimentary support for minetest's sqlite3 auth format
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