Check upload name to make sure its an image or video
All checks were successful
Core Repos/ImageApi/pipeline/head This commit looks good

The upload code should be additionally refactored to probably do a more
comprehensive check of if the file is an image or video.
This commit is contained in:
Cameron Cordes
2021-03-07 22:00:12 -05:00
parent 3611f46004
commit 3c02bcc8fb
3 changed files with 10 additions and 10 deletions

View File

@@ -45,7 +45,10 @@ pub async fn login(
.unwrap();
HttpResponse::Ok().json(Token { token: &token })
} else {
error!("User not found during login: '{}'", creds.username);
error!(
"User not found during login or incorrect password: '{}'",
creds.username
);
HttpResponse::NotFound().finish()
}
}