This commit is contained in:
Hubert 2021-07-20 07:03:14 +02:00
parent 07f11b238e
commit 2bc387920c
3 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,7 @@ mod gitust;
mod error;
mod web;
mod gitutils;
mod webutils;
#[derive(Template)]
#[template(path = "hello.html")]

5
src/webutils/auth.rs Normal file
View File

@ -0,0 +1,5 @@
use actix_web_httpauth::extractors::basic::BasicAuth;
pub fn check_user(auth : BasicAuth) -> bool {
auth.user_id() == auth.
}

1
src/webutils/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod auth;