Verifies a presented password, holding the event loop for the scrypt
comparison.
In development mode any password but the reserved one is accepted
unchecked. An app password is tried first where the value has one's
shape. A refused password is recorded for risk scoring.
Parameters
username: any
the name as presented
password: any
the password
Optionalopts: any
via (the door, for the log and risk), and
allowPasswordReset for the sign-in screen
Returns any
{ ok, reason, … }; the reason is for the log, never for a
protocol response
Verifies a presented password, holding the event loop for the scrypt comparison.
In development mode any password but the reserved one is accepted unchecked. An app password is tried first where the value has one's shape. A refused password is recorded for risk scoring.