pub struct PasswordSignUp { /* private fields */ }Expand description
Registers an AdminUser from a SignUp, refusing a password
new_password_errors refuses and an email another account
holds. Install it with Auth::registration.
Whether a new account may open the panel is a choice the constructor makes:
pending stores it inactive, for an administrator to approve by setting
active, and the sign-up lands on the login page; open stores it active and
signs it in at once, so any visitor gets the panel’s access.
use tablo_core::{Auth, PasswordSignUp};
let auth = Auth::password().registration(PasswordSignUp::pending());Implementations§
Trait Implementations§
Source§impl Clone for PasswordSignUp
impl Clone for PasswordSignUp
impl Copy for PasswordSignUp
Source§impl Debug for PasswordSignUp
impl Debug for PasswordSignUp
Source§impl Registrar for PasswordSignUp
impl Registrar for PasswordSignUp
Source§type Input = SignUp
type Input = SignUp
What the sign-up page asks for:
SignUp, or the app’s own
#[derive(FormInput)] struct. #[form(password)] masks a
field, and #[form(email)] checks an address.Source§type User = AdminUser
type User = AdminUser
The account a sign-up creates: the type the panel’s
Authenticator loads, which mounting checks.Auto Trait Implementations§
impl Forget for PasswordSignUp
impl Freeze for PasswordSignUp
impl Move for PasswordSignUp
impl RefUnwindSafe for PasswordSignUp
impl Send for PasswordSignUp
impl Sync for PasswordSignUp
impl Unpin for PasswordSignUp
impl UnsafeUnpin for PasswordSignUp
impl UnwindSafe for PasswordSignUp
Blanket Implementations§
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