Commit 1155ab47 authored by Alexander Færøy's avatar Alexander Færøy 🍍
Browse files

Replace whitespace in usernames with underscore.

parent ae015bf5
......@@ -8,7 +8,7 @@ def approve_user(model):
try:
user = client.users.create({
"name": model.username,
"username": model.username,
"username": model.username.replace(" ", "_"),
"email": model.email,
"reset_password": True,
"can_create_group": False,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment