Introduce is_paid attribute to SalesUser
This commit is contained in:
parent
17e16d35a7
commit
d48c97edac
8 changed files with 304 additions and 36 deletions
|
|
@ -302,6 +302,7 @@ pub async fn auth_info<RestState: RestStateDef>(
|
|||
|
||||
pub async fn start_server<RestState: RestStateDef>(rest_state: RestState) {
|
||||
let app = Router::new();
|
||||
let app = app.route("/authenticate", get(login));
|
||||
|
||||
#[cfg(feature = "oidc")]
|
||||
let app = {
|
||||
|
|
@ -314,9 +315,7 @@ pub async fn start_server<RestState: RestStateDef>(rest_state: RestState) {
|
|||
}))
|
||||
.layer(OidcLoginLayer::<EmptyAdditionalClaims>::new());
|
||||
|
||||
app.route("/authenticate", get(login))
|
||||
.route("/logout", get(logout))
|
||||
.layer(oidc_login_service)
|
||||
app.route("/logout", get(logout)).layer(oidc_login_service)
|
||||
};
|
||||
|
||||
let app = app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue