summaryrefslogtreecommitdiff
path: root/src/setup
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-24 01:12:06 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-24 04:50:49 -0400
commitfd6a74e8ca1f5ded2a760b8ac644124862d80d54 (patch)
tree1da22665c0259c3a4ed63bb7acef4a6e81365dbe /src/setup
parent97e4c1d25f6ee17959adc23cacd8361dcd42e519 (diff)
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.
Diffstat (limited to 'src/setup')
-rw-r--r--src/setup/app.rs3
-rw-r--r--src/setup/handlers/setup/mod.rs9
2 files changed, 4 insertions, 8 deletions
diff --git a/src/setup/app.rs b/src/setup/app.rs
index 26eed7a..1210175 100644
--- a/src/setup/app.rs
+++ b/src/setup/app.rs
@@ -5,9 +5,10 @@ use crate::{
clock::DateTime,
event::Broadcaster,
name::Name,
+ password::Password,
token::{Secret, repo::Provider as _},
user::{
- Password, User,
+ User,
create::{self, Create},
},
};
diff --git a/src/setup/handlers/setup/mod.rs b/src/setup/handlers/setup/mod.rs
index cbb3072..9e31282 100644
--- a/src/setup/handlers/setup/mod.rs
+++ b/src/setup/handlers/setup/mod.rs
@@ -5,13 +5,8 @@ use axum::{
};
use crate::{
- app::App,
- clock::RequestedAt,
- error::Internal,
- name::Name,
- setup::app,
- token::extract::IdentityCookie,
- user::{Password, User},
+ app::App, clock::RequestedAt, error::Internal, name::Name, password::Password, setup::app,
+ token::extract::IdentityCookie, user::User,
};
#[cfg(test)]