Add LoggedInUser extractor
This commit is contained in:
parent
a82e4e1d50
commit
f5946e5ea0
5 changed files with 81 additions and 15 deletions
|
|
@ -9,8 +9,6 @@ use crate::state::RoutableAppState;
|
|||
mod index;
|
||||
mod login;
|
||||
|
||||
pub const COOKIE_NAME: &'static str = "yunohost.ssowat";
|
||||
|
||||
/// Build a router for the application, in a specific subpath eg `/yunohost/sso/`
|
||||
pub fn router(subpath: Option<String>, state: RoutableAppState) -> Router {
|
||||
let app = Router::new()
|
||||
|
|
@ -24,4 +22,4 @@ pub fn router(subpath: Option<String>, state: RoutableAppState) -> Router {
|
|||
} else {
|
||||
app
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue