Code refactoring
This commit is contained in:
@@ -47,7 +47,7 @@ pub async fn register_user(
|
|||||||
lastname: payload.lastname.clone(),
|
lastname: payload.lastname.clone(),
|
||||||
status: String::from("Active"),
|
status: String::from("Active"),
|
||||||
email_verified: true,
|
email_verified: true,
|
||||||
date_created: String::from("2025-01-01 12:00:00"),
|
date_created: time::OffsetDateTime::now_utc().to_string(),
|
||||||
last_login: String::new(),
|
last_login: String::new(),
|
||||||
salt_id: uuid::Uuid::nil(),
|
salt_id: uuid::Uuid::nil(),
|
||||||
};
|
};
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
pub mod callers;
|
pub mod callers;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod hashing;
|
pub mod hashing;
|
||||||
pub mod models;
|
|
||||||
pub mod repo;
|
pub mod repo;
|
||||||
|
|
||||||
pub mod keys {
|
pub mod keys {
|
||||||
|
@@ -1,14 +0,0 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize)]
|
|
||||||
pub struct CreateUser {
|
|
||||||
pub username: String,
|
|
||||||
pub password: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize)]
|
|
||||||
pub struct User {
|
|
||||||
pub id: uuid::Uuid,
|
|
||||||
pub username: String,
|
|
||||||
pub password: String,
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
pub mod common;
|
|
Reference in New Issue
Block a user