downstream: clarify "user not active" error message

This commit is contained in:
Simon Ser 2022-03-23 13:11:37 +01:00
parent 16e43ee3a3
commit 44efe37292

View File

@ -1274,7 +1274,7 @@ func (dc *downstreamConn) authenticate(ctx context.Context, username, password s
dc.user = dc.srv.getUser(username) dc.user = dc.srv.getUser(username)
if dc.user == nil { if dc.user == nil {
return fmt.Errorf("user not active") return fmt.Errorf("user exists in the DB but hasn't been loaded by the bouncer -- a restart may help")
} }
dc.clientName = clientName dc.clientName = clientName
dc.registration.networkName = networkName dc.registration.networkName = networkName