Commit 228d9a9a authored by Katharina Fey's avatar Katharina Fey 🏴
Browse files

Code cleanup

parent ecf60c87
use crate::PrettyHash;
use clap::ArgMatches;
use std::io::{stdin, Read};
......
......@@ -47,7 +47,7 @@ fn index(state: web::Data<Params>, req: HttpRequest) -> HttpResponse {
let hash = utils::secret_to_verify(token.into(), state.salt.as_str());
if utils::blake2_verify(hash, token.into()) {
if utils::blake2_verify(hash, token.into(), state.salt.as_str()) {
HttpResponse::Ok().body(format!("Done"))
} else {
HttpResponse::Forbidden().body(format!("Failed to authenticate!"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment