pub struct LoginResult {
pub location: Option<String>,
pub message: String,
pub person_id: i64,
pub status: String,
pub extra: Map<String, Value>,
}Expand description
Result of the password step. Only success completes the login; totp and twoFactorSetup require further requests using the same browser session.
Fields§
§location: Option<String>Suggested navigation location. Pending TOTP uses ?q=twofactor and pending setup uses ?q=twofactorforce. Normal login may return a relative or absolute location, or null.
message: StringHuman-readable status text; success is localized, while pending two-factor messages are currently fixed English text. Use status for branching.
person_id: i64Authenticated person ID, also returned before two-factor verification. Pass it to the TOTP step.
status: Stringsuccess: session login completed; totp: submit /login/totp; twoFactorSetup: initialize and activate /login/twofactor/setup.
Allowed values: success, totp, twoFactorSetup.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.