diff options
Diffstat (limited to 'src/models/auth.rs')
| -rw-r--r-- | src/models/auth.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models/auth.rs b/src/models/auth.rs index 8b8f61c..7f9ae00 100644 --- a/src/models/auth.rs +++ b/src/models/auth.rs @@ -32,6 +32,13 @@ pub struct AuthBody { token_type: String, } +/// Payload used for user creation +#[derive(Deserialize)] +pub struct LoginCredentials { + pub username: String, + pub password: String, +} + static KEYS: Lazy<Keys> = Lazy::new(|| { let secret = std::env::var("JWT_SECRET").expect("JWT_SECRET must be set"); Keys::new(secret.as_bytes()) |
