0
0
Fork 0
mirror of https://git.verdigado.com/NB-Public/simple-wkd.git synced 2024-12-06 14:52:41 +01:00

Refactor even more

This commit is contained in:
Delta1925 2023-04-13 22:26:41 +02:00
parent 7dc106ffd4
commit 9efbaefd92
No known key found for this signature in database
GPG key ID: 1C21ACE44193CB25
4 changed files with 49 additions and 48 deletions

View file

@ -27,7 +27,7 @@ struct Pem {
#[derive(Deserialize, Debug)]
struct Token {
data: String,
value: String,
}
#[derive(Deserialize, Debug)]
@ -63,7 +63,7 @@ async fn submit(pem: web::Form<Pem>) -> Result<String> {
#[get("/api/confirm/{data}")]
async fn confirm(token: web::Path<Token>) -> Result<String> {
confirm_action(&token.data)?;
confirm_action(&token.value)?;
Ok(String::from("Confirmation successfull!"))
}