1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-12 05:50:06 +00:00

Reflow some lines manually

This commit is contained in:
Jake Howard 2021-03-31 21:45:05 +01:00
parent 0af3956abd
commit 93c881a7a9
No known key found for this signature in database
GPG key ID: 57AFB45680EDD477
4 changed files with 9 additions and 12 deletions

View file

@ -142,8 +142,12 @@ fn admin_url(referer: Referer) -> String {
fn admin_login(flash: Option<FlashMessage>) -> ApiResult<Html<String>> {
// If there is an error, show it
let msg = flash.map(|msg| format!("{}: {}", msg.name(), msg.msg()));
let json =
json!({"page_content": "admin/login", "version": VERSION, "error": msg, "urlpath": CONFIG.domain_path()});
let json = json!({
"page_content": "admin/login",
"version": VERSION,
"error": msg,
"urlpath": CONFIG.domain_path()
});
// Return the page
let text = CONFIG.render_template(BASE_TEMPLATE, &json)?;