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

Replace the name of the stream if using an alias

This commit is contained in:
Yohann D'ANELLO
2021-01-08 22:23:33 +01:00
parent 7e0ee7aba5
commit e47aefd6df
4 changed files with 9 additions and 9 deletions

View File

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