(@supportstr$name:ident,$value:expr,Pass,option)=>{serde_json::to_value(&$value.as_ref().map(|_|String::from("***"))).unwrap()};// Optional pass, we map to an Option<String> with "***"
(@supportstr$name:ident,$value:expr,Pass,option)=>{serde_json::to_value(&$value.as_ref().map(|_|String::from("***"))).unwrap()};// Optional pass, we map to an Option<String> with "***"
(@supportstr$name:ident,$value:expr,Pass,$none_action:ident)=>{"***".into()};// Required pass, we return "***"
(@supportstr$name:ident,$value:expr,Pass,$none_action:ident)=>{"***".into()};// Required pass, we return "***"
(@supportstr$name:ident,$value:expr,$ty:ty,option)=>{serde_json::to_value(&$value).unwrap()};// Optional other or string, we convert to json
(@supportstr$name:ident,$value:expr,$ty:ty,option)=>{serde_json::to_value(&$value).unwrap()};// Optional other or string, we convert to json
@ -67,6 +69,18 @@ macro_rules! make_config {
(@show)=>{""};
(@show)=>{""};
(@show$lit:literal)=>{$lit};
(@show$lit:literal)=>{$lit};
// Write-only values are shown as empty inputs and never serialized to the admin settings page.
/// Admin token/Argon2 PHC |> The plain text token or Argon2 PHC string used to authenticate in this very same page. Changing it here will not deauthorize the current session!
/// Admin token/Argon2 PHC |> The plain text token or Argon2 PHC string used to authenticate in this very same page. Changing it here will not deauthorize the current session!
admin_token: Pass,true,option;
admin_token: Pass,true,option;
/// Admin TOTP secret |> Base32-encoded secret containing at least 16 bytes of secret data. When set, logging in to the admin page additionally requires a time-based one-time code. Leave blank to keep the saved secret. Has no effect when DISABLE_ADMIN_TOKEN is enabled!
admin_totp_secret: AdminTotpSecret,true,option;
/// Invitation organization name |> Name shown in the invitation emails that don't come from a specific organization
/// Invitation organization name |> Name shown in the invitation emails that don't come from a specific organization
Remove saved override (the environment value will become active)
{{else}}
Remove saved value
{{/if}}
</label>
</div>
{{else}}
{{#ifconfigured}}
<div class="form-text">Set by the environment. Enter a value to save a config override.</div>
{{/if}}
{{/if}}
<div class="form-text">When replacing this secret, add the new value to your authenticator before saving. Closing the current session before testing it may lock you out.</div>