mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-07-04 08:12:13 +02:00
Compare commits
1 Commits
dev
...
1520e78bad
Author | SHA1 | Date | |
---|---|---|---|
1520e78bad
|
@ -82,7 +82,9 @@ 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)
|
||||||
|
name = username
|
||||||
|
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
|
||||||
|
Reference in New Issue
Block a user