1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 22:42:15 +02:00

I am an idiot, don't let only people with the *wrong* password stream

This commit is contained in:
Yohann D'ANELLO
2021-01-08 23:05:01 +01:00
parent 79f52ed880
commit 34652f8f3e
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ func Serve(streams *messaging.Streams, authBackend auth.Backend, cfg *Options) {
if authBackend != nil {
// check password
ok, username, err := authBackend.Login(name, password)
if ok || err != nil {
if !ok || err != nil {
log.Printf("Failed to authenticate for stream %s", name)
s.Close()
continue