diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-08-24 01:12:06 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-08-24 04:50:49 -0400 |
| commit | fd6a74e8ca1f5ded2a760b8ac644124862d80d54 (patch) | |
| tree | 1da22665c0259c3a4ed63bb7acef4a6e81365dbe /src/token | |
| parent | 97e4c1d25f6ee17959adc23cacd8361dcd42e519 (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/token')
| -rw-r--r-- | src/token/app.rs | 3 | ||||
| -rw-r--r-- | src/token/repo/auth.rs | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/token/app.rs b/src/token/app.rs index 46b2d73..49f9a45 100644 --- a/src/token/app.rs +++ b/src/token/app.rs @@ -13,7 +13,8 @@ use crate::{ clock::DateTime, db::NotFound as _, name::{self, Name}, - user::{Password, User, repo::Provider as _}, + password::Password, + user::{User, repo::Provider as _}, }; pub struct Tokens<'a> { diff --git a/src/token/repo/auth.rs b/src/token/repo/auth.rs index 5976d4a..600855d 100644 --- a/src/token/repo/auth.rs +++ b/src/token/repo/auth.rs @@ -5,7 +5,8 @@ use crate::{ db::NotFound, event::{Instant, Sequence}, name::{self, Name}, - user::{self, History, User, password::StoredHash}, + password::StoredHash, + user::{self, History, User}, }; pub trait Provider { |
