0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:user::registar: Simplify parse for optional string in object.

This commit is contained in:
Jason Volk 2020-04-12 15:16:45 -07:00
parent 817ceee911
commit 43f0f198f5

View file

@ -20,9 +20,9 @@ const
};
// 3.3.1 The login type that the client is attempting to complete.
const string_view &type
const json::string &type
{
!empty(auth)? unquote(auth.at("type")) : string_view{}
auth["type"]
};
// We only support this for now, for some reason. TODO: XXX