Show the running version next to the brand; bump to 0.2.1
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
6a55988671
commit
5ccf2b1108
9 files changed
+31
-8
No files matched your search
+2
-2
@@ -285,10 +285,10 @@ async fn dispatch(request: Request) -> Result<Response> {
|
||||
json!({"oidc":config.oidc.is_some(),"password":config.password_form_available()});
|
||||
return match identity {
|
||||
Ok(i) => response(
|
||||
json!({"user":i.user,"csrf":i.csrf,"auth":auth,"demo":crate::demo_runtime::active(),"demo_lifecycle":crate::demo_runtime::notice()}),
|
||||
json!({"version":env!("CARGO_PKG_VERSION"),"user":i.user,"csrf":i.csrf,"auth":auth,"demo":crate::demo_runtime::active(),"demo_lifecycle":crate::demo_runtime::notice()}),
|
||||
),
|
||||
Err(Error::Unauthorized) => response(
|
||||
json!({"user":null,"auth":auth,"demo":crate::demo_runtime::active(),"demo_lifecycle":crate::demo_runtime::notice()}),
|
||||
json!({"version":env!("CARGO_PKG_VERSION"),"user":null,"auth":auth,"demo":crate::demo_runtime::active(),"demo_lifecycle":crate::demo_runtime::notice()}),
|
||||
),
|
||||
Err(e) => Err(e),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user