pub struct EmailPasswordConfig {
pub enable_signup: bool,
pub username: bool,
pub require_email_verification: bool,
pub password_min_length: Option<usize>,
pub password_max_length: Option<usize>,
pub auto_sign_in: Option<bool>,
pub password_hasher: Option<Arc<dyn PasswordHasher>>,
pub on_existing_user_sign_up: Option<Arc<dyn OnExistingUserSignUp>>,
pub custom_synthetic_user: Option<Arc<CustomSyntheticUser>>,
}Fields§
§enable_signup: bool§username: boolEnable the upstream username plugin behavior. Requires both username fields.
require_email_verification: bool§password_min_length: Option<usize>§password_max_length: Option<usize>Maximum password length (default: 128).
auto_sign_in: Option<bool>Whether to automatically sign in the user after sign-up (default: true).
With Some(false), sign-up returns the user without creating a session.
password_hasher: Option<Arc<dyn PasswordHasher>>Custom password hasher. When None, the default scrypt hasher is used.
on_existing_user_sign_up: Option<Arc<dyn OnExistingUserSignUp>>Notify the application after a protected duplicate signup hashes its password.
custom_synthetic_user: Option<Arc<CustomSyntheticUser>>Customize enumeration-safe signup responses without creating an account.
Implementations§
Source§impl EmailPasswordConfig
impl EmailPasswordConfig
Sourcepub fn password_min_length(&self) -> usize
pub fn password_min_length(&self) -> usize
Read the minimum password length. Omission uses eight characters.
Sourcepub fn password_max_length(&self) -> usize
pub fn password_max_length(&self) -> usize
Read the maximum password length. Omission uses 128 characters.
Sourcepub fn auto_sign_in(&self) -> bool
pub fn auto_sign_in(&self) -> bool
Read the sign-up session policy. Omission creates a session.
Trait Implementations§
Source§impl Clone for EmailPasswordConfig
impl Clone for EmailPasswordConfig
Source§impl Debug for EmailPasswordConfig
impl Debug for EmailPasswordConfig
Auto Trait Implementations§
impl !RefUnwindSafe for EmailPasswordConfig
impl !UnwindSafe for EmailPasswordConfig
impl Freeze for EmailPasswordConfig
impl Send for EmailPasswordConfig
impl Sync for EmailPasswordConfig
impl Unpin for EmailPasswordConfig
impl UnsafeUnpin for EmailPasswordConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more