1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

Clarify error message.

This commit is contained in:
Juliusz Chroboczek 2020-04-25 16:54:20 +02:00
parent 6f7c809b71
commit b053a64631

View file

@ -352,7 +352,7 @@ type userPermission struct {
func getPermission(desc *groupDescription, user, pass string) (userPermission, error) { func getPermission(desc *groupDescription, user, pass string) (userPermission, error) {
var p userPermission var p userPermission
if !desc.AllowAnonymous && user == "" { if !desc.AllowAnonymous && user == "" {
return p, userError("anonymous users not allowed in this group") return p, userError("anonymous users not allowed in this group, please choose a username")
} }
if found, good := matchUser(user, pass, desc.Admin); found { if found, good := matchUser(user, pass, desc.Admin); found {
if good { if good {