BasicOIDC/src/controllers/login_controller.rs

15 lines
296 B
Rust
Raw Normal View History

2022-03-30 08:29:10 +00:00
use actix_web::Responder;
use askama::Template;
use crate::constants::APP_NAME;
#[derive(Template)]
#[template(path = "login.html")]
struct LoginTemplate<'a> {
app_name: &'a str,
}
pub async fn login_route() -> impl Responder {
LoginTemplate { app_name: APP_NAME }.render().unwrap()
}