Evaluate a parsed helloworld/logincheck answer (P18). GENESIS answers a login check
with HTTP 200 whether or not the credentials are right; the outcome is in the body,
and only an explicit success or failure decides it:
Status as a string (the live shape): an error text means rejected, a success
text accepted;
Status as an object, or a flat { Code, Content, Type } (the shape of every
other GENESIS answer and of the auth errors): an error Type, or a Code other
than 0/22, means rejected; Code 0/22 accepted;
an accepted answer must also name the account the server logged in: a non-empty
Username. What it holds doesn't matter — live, the server echoes the user name
or the token sent — so a success text next to the echoed token stays a success.
Anything else — no Status, a text that is neither a success nor an error, a success
without Username — is malformed: the check confirmed nothing. Nothing is guessed
(an echoed token next to an unrecognised text used to count as rejected; it is
malformed now). The second parameter is ignored; it is kept so existing callers
still compile.
Evaluate a parsed
helloworld/logincheckanswer (P18). GENESIS answers a login check with HTTP 200 whether or not the credentials are right; the outcome is in the body, and only an explicit success or failure decides it:Statusas a string (the live shape): an error text means rejected, a success text accepted;Statusas an object, or a flat{ Code, Content, Type }(the shape of every other GENESIS answer and of the auth errors): an errorType, or aCodeother than 0/22, means rejected; Code 0/22 accepted;Username. What it holds doesn't matter — live, the server echoes the user name or the token sent — so a success text next to the echoed token stays a success.Anything else — no
Status, a text that is neither a success nor an error, a success withoutUsername— ismalformed: the check confirmed nothing. Nothing is guessed (an echoed token next to an unrecognised text used to count as rejected; it is malformed now). The second parameter is ignored; it is kept so existing callers still compile.