Skip to content
Snippets Groups Projects
Commit f524b8da authored by Josh Brooks's avatar Josh Brooks
Browse files

Remove dumb flatten check

parent a77b7d58
No related branches found
No related tags found
4 merge requests!50Revert "update deps",!48Release,!42Add username field to users table for raw username,!41Xx 3692/banned users
......@@ -18,7 +18,6 @@ import (
"gitlab.com/xx_network/comms/messages"
"gitlab.com/xx_network/crypto/signature/rsa"
"gitlab.com/xx_network/primitives/id"
"strings"
"time"
)
......@@ -59,7 +58,7 @@ func registerUser(msg *pb.UDBUserRegistration, permPublicKey *rsa.PublicKey,
// }
// Check if the username is banned
if store.IsBanned(strings.ToLower(username)) {
if store.IsBanned(username) {
// Return same error message as if the user was already taken
return &messages.Ack{}, errors.Errorf("Username %s is already taken. "+
"Please try again", username)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment