mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
modules/client/register: Fix defaulting empty ?kind= to user.
This commit is contained in:
parent
08d00bb3c8
commit
f12786959e
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue