0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-02 00:38:24 +02:00

modules/client/register: Fix defaulting empty ?kind= to user.

This commit is contained in:
Jason Volk 2018-01-29 11:27:14 -08:00
parent 08d00bb3c8
commit f12786959e

View file

@ -171,12 +171,12 @@ handle_post(client &client,
request.query["kind"]
};
if(kind == "user")
return handle_post_kind_user(client, request);
if(kind.empty() || kind == "guest")
if(kind == "guest")
return handle_post_kind_guest(client, request);
if(kind.empty() || kind == "user")
return handle_post_kind_user(client, request);
throw m::error
{
http::BAD_REQUEST,