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:
parent
817ceee911
commit
43f0f198f5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue