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:
parent
7dc106ffd4
commit
9efbaefd92
4 changed files with 49 additions and 48 deletions
|
@ -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!"))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue