add HTTP plugin
This commit is contained in:
@ -30,10 +30,10 @@ type autherWrapper struct {
|
||||
r *autherRegistry
|
||||
}
|
||||
|
||||
func (w *autherWrapper) Authenticate(ctx context.Context, user, password string) (bool, string) {
|
||||
func (w *autherWrapper) Authenticate(ctx context.Context, user, password string) (string, bool) {
|
||||
v := w.r.get(w.name)
|
||||
if v == nil {
|
||||
return true, ""
|
||||
return "", true
|
||||
}
|
||||
return v.Authenticate(ctx, user, password)
|
||||
}
|
||||
|
Reference in New Issue
Block a user