save
This commit is contained in:
parent
07f11b238e
commit
2bc387920c
|
@ -49,6 +49,7 @@ mod gitust;
|
|||
mod error;
|
||||
mod web;
|
||||
mod gitutils;
|
||||
mod webutils;
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "hello.html")]
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
use actix_web_httpauth::extractors::basic::BasicAuth;
|
||||
|
||||
pub fn check_user(auth : BasicAuth) -> bool {
|
||||
auth.user_id() == auth.
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
pub mod auth;
|
Loading…
Reference in New Issue