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:
parent
0af3956abd
commit
93c881a7a9
4 changed files with 9 additions and 12 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue