mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 16:17:30 +01:00
save
This commit is contained in:
@@ -49,6 +49,7 @@ mod gitust;
|
|||||||
mod error;
|
mod error;
|
||||||
mod web;
|
mod web;
|
||||||
mod gitutils;
|
mod gitutils;
|
||||||
|
mod webutils;
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "hello.html")]
|
#[template(path = "hello.html")]
|
||||||
|
|||||||
5
src/webutils/auth.rs
Normal file
5
src/webutils/auth.rs
Normal 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
1
src/webutils/mod.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub mod auth;
|
||||||
Reference in New Issue
Block a user