Register endpoint #16

Merged
phoenix merged 56 commits from register_endpoint-init into devel 2025-04-05 19:26:59 +00:00
4 changed files with 1 additions and 17 deletions
Showing only changes of commit 832f024356 - Show all commits

View File

@@ -47,7 +47,7 @@ pub async fn register_user(
lastname: payload.lastname.clone(),
status: String::from("Active"),
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(),
salt_id: uuid::Uuid::nil(),
};

View File

@@ -1,7 +1,6 @@
pub mod callers;
pub mod config;
pub mod hashing;
pub mod models;
pub mod repo;
pub mod keys {

View File

@@ -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,
}

View File

@@ -1 +0,0 @@
pub mod common;