Fix forget password
All checks were successful
Build Crate / build (push) Successful in 1m46s

This commit is contained in:
2024-08-28 23:14:27 -04:00
parent ed780c9585
commit 9a42ed5b80
2 changed files with 13 additions and 4 deletions

View File

@@ -74,10 +74,10 @@ pub async fn post_register_user(
let db_resp = user::Entity::insert(new_user).exec(&state.db_conn).await;
match db_resp {
Ok(_) => {}
Err(err) => {
Err(_) => {
return (
StatusCode::INTERNAL_SERVER_ERROR,
Json(GenericResponse::err(err.to_string().as_str())),
Json(GenericResponse::err("Database error")),
);
}
};