Add database to server endpoints, move modals, add forget pw to db
All checks were successful
Build Crate / build (push) Successful in 1m45s
All checks were successful
Build Crate / build (push) Successful in 1m45s
This commit is contained in:
13
src/server/auth/forgot_password.rs
Normal file
13
src/server/auth/forgot_password.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use crate::{models::auth::ForgotPasswordRequest, server::server_state::ServerState};
|
||||
use axum::{
|
||||
extract::{Json, State},
|
||||
http::{HeaderMap, StatusCode},
|
||||
};
|
||||
use sea_orm::DatabaseConnection;
|
||||
|
||||
pub async fn post_forgot_password(
|
||||
State(state): State<ServerState>,
|
||||
Json(password_request): Json<ForgotPasswordRequest>,
|
||||
) -> StatusCode {
|
||||
StatusCode::OK
|
||||
}
|
||||
Reference in New Issue
Block a user