Skip to main content

Module user

Module user 

Source
Expand description

User-centric commands that cross both the web and SSH login paths.

Extracted from web/src/handler.rs so the SSH daemon reuses the exact same password-verification code: same Argon2 parameters, same “invalid email or password” failure mode.

Structs§

VerifiedUser
What a successful VerifyUserPassword returns. The daemon gates the entire password code path on ssh_enabled = TRUE; the web handler ignores that flag since it owns its own login surface.
VerifyUserPassword
VerifyUserPasswordRunner00
VerifyUserPasswordRunner01
VerifyUserPasswordRunner10
VerifyUserPasswordRunner11

Functions§

verify_user_password
Shared verification helper returning the richer VerifiedUser shape. The SSH daemon uses this directly so it can gate the password path on ssh_enabled.