Skip to main content

requires_login_code

Function requires_login_code 

Source
async fn requires_login_code(
    conn: &mut PgConnection,
    user_id: Uuid,
) -> Result<bool, ControllerError>
Expand description

Whether a production login must also be confirmed with an emailed code. Any role at any scope counts: a teacher’s account is as worth stealing as an admin’s. Test-mode and UUID logins skip it, since the system tests have no mail capture.