From 04d085529a5ae02e509e768de37779979e388243 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 26 Feb 2024 21:36:35 +0100 Subject: [PATCH] Use the new qvf method in the login page. --- .../templates/LoginPage.tres | 6 +----- .../templates/LoginPageTD.phtpl | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/web/users_sqlite_bootstrap_templated/templates/LoginPage.tres b/web/users_sqlite_bootstrap_templated/templates/LoginPage.tres index c601a9e..766b4cf 100644 --- a/web/users_sqlite_bootstrap_templated/templates/LoginPage.tres +++ b/web/users_sqlite_bootstrap_templated/templates/LoginPage.tres @@ -11,11 +11,7 @@ func _render(request: WebServerRequest, data: Dictionary) -> String: if (!error_str.empty()): data[\"error_str\"] = get_and_render_template(@\"LoginErrorStrTemplate\", data) - var uname_val : String = data[\"uname_val\"] - data[\"username_prev_value\"] = \"\" - - if (!uname_val.empty()): - data[\"username_prev_value\"] = 'value=\"' + uname_val + '\"' + data[\"username_prev_value\"] = data[\"uname_val\"] return get_and_render_template(@\"Login\", data) " diff --git a/web/users_sqlite_bootstrap_templated/templates/LoginPageTD.phtpl b/web/users_sqlite_bootstrap_templated/templates/LoginPageTD.phtpl index c6fdab8..78646ad 100644 --- a/web/users_sqlite_bootstrap_templated/templates/LoginPageTD.phtpl +++ b/web/users_sqlite_bootstrap_templated/templates/LoginPageTD.phtpl @@ -17,7 +17,7 @@
- +