Commit aaf0cc65 authored by Pierre-Antoine Comby's avatar Pierre-Antoine Comby

pseudo par defaut = pseudo proposé

parent d5aa9c7e
......@@ -1086,7 +1086,7 @@ def inscriptions(request, sock, kwargs):
# on rajoute dans le champ pseudo la valeur par défaut
sock.write(json.dumps(["get_default_pseudo", [preins["nom"], preins["prenom"]]]))
out = nk.full_read(sock)
if nk._is_success_code(out["retcode"]):
if nk._is_success_code(out["retcode"]) and not from_wei:
preins["pseudo"] = out["msg"]
else:
messages.add_error(request, out["errmsg"])
......
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