doido_auth/controllers/mod.rs
1//! Default auth controllers shipped with `doido-auth`.
2//!
3//! Apps can point `auth_routes!(User)` at these types directly, or supply custom
4//! controllers via `controllers:` / `actions:` options (Devise-style). Generated
5//! apps from `auth:install` emit project-local controllers under
6//! `app/controllers/auth/` that mirror these defaults and can be extended.
7
8pub mod oauth;
9pub mod passwords;
10pub mod registrations;
11pub mod sessions;
12
13#[cfg(feature = "auth-2fa")]
14pub mod two_factor;
15
16pub use oauth::AuthOauth;
17pub use passwords::AuthPasswords;
18pub use registrations::AuthRegistrations;
19pub use sessions::AuthSessions;
20
21#[cfg(feature = "auth-2fa")]
22pub use two_factor::AuthTwoFactor;