From fd6a74e8ca1f5ded2a760b8ac644124862d80d54 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sun, 24 Aug 2025 01:12:06 -0400 Subject: Hoist `password` out to the top level. Having this buried under `crate::user` makes it hard to split up the roles `user` fulfils right now. Moving it out to its own module makes it a bit tidier to reuse it in a separate, authentication-only way. --- src/invite/app.rs | 3 ++- src/invite/handlers/accept/mod.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/invite') diff --git a/src/invite/app.rs b/src/invite/app.rs index e7bd5c6..a286a8f 100644 --- a/src/invite/app.rs +++ b/src/invite/app.rs @@ -7,9 +7,10 @@ use crate::{ db::{Duplicate as _, NotFound as _}, event::Broadcaster, name::Name, + password::Password, token::{Secret, repo::Provider as _}, user::{ - Password, User, + User, create::{self, Create}, }, }; diff --git a/src/invite/handlers/accept/mod.rs b/src/invite/handlers/accept/mod.rs index 0d5f08a..9fa4d6a 100644 --- a/src/invite/handlers/accept/mod.rs +++ b/src/invite/handlers/accept/mod.rs @@ -10,8 +10,9 @@ use crate::{ error::{Internal, NotFound}, invite::{app, handlers::PathInfo}, name::Name, + password::Password, token::extract::IdentityCookie, - user::{Password, User}, + user::User, }; #[cfg(test)] -- cgit v1.2.3