LoginForm takes an email and a password, keeps one signed in on a box, and signs in on Enter once the address reads and a password is typed; a failed try says why above Sign in. SignupForm ticks a new password's rules as they hold and waits for all of them and the terms. OAuthButtons offer each provider, one spinning while the rest rest. MagicLinkForm and ForgotPassword send a link to an address and, once sent, say where it went and offer it again. TwoFactorInput takes a six-digit code at once and, after one fails, clears the boxes through forms::PinInput's new attempt, keeping its focus. The Account chapter splits into sign-in, profile and access, and billing and team. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
310 B
Rust
15 lines
310 B
Rust
mod factor;
|
|
mod login;
|
|
mod mail;
|
|
mod oauth;
|
|
mod signup;
|
|
|
|
#[cfg(all(test, feature = "test-support"))]
|
|
mod tests;
|
|
|
|
pub use factor::TwoFactorInput;
|
|
pub use login::{Login, LoginForm};
|
|
pub use mail::{ForgotPassword, MagicLinkForm};
|
|
pub use oauth::OAuthButtons;
|
|
pub use signup::{Signup, SignupForm, password_rules};
|