mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 10:22:19 +00:00
Alias is not properly replaced
This commit is contained in:
parent
e47aefd6df
commit
ee16bf9e21
@ -82,11 +82,13 @@ func Serve(streams *messaging.Streams, authBackend auth.Backend, cfg *Options) {
|
|||||||
name, password := split[0], split[1]
|
name, password := split[0], split[1]
|
||||||
if authBackend != nil {
|
if authBackend != nil {
|
||||||
// check password
|
// check password
|
||||||
if ok, name, err := authBackend.Login(name, password); !ok || err != nil {
|
ok, username, err := authBackend.Login(name, password)
|
||||||
|
if ok || err != nil {
|
||||||
log.Printf("Failed to authenticate for stream %s", name)
|
log.Printf("Failed to authenticate for stream %s", name)
|
||||||
s.Close()
|
s.Close()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
name = username
|
||||||
}
|
}
|
||||||
|
|
||||||
go handleStreamer(s, streams, name)
|
go handleStreamer(s, streams, name)
|
||||||
|
Loading…
Reference in New Issue
Block a user