From fce50c6116a56a0fdce2e73da1e071c9637e56a5 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sat, 7 Oct 2023 18:35:15 +0200 Subject: [PATCH] chore: BotHP --- website/app-templates/smarty/forms/registration.tpl | 2 ++ website/app-templates/smarty/js/registration/username2.tpl.js | 3 +++ website/app-templates/smarty/pages/registration.tpl | 1 + 3 files changed, 6 insertions(+) create mode 100644 website/app-templates/smarty/js/registration/username2.tpl.js diff --git a/website/app-templates/smarty/forms/registration.tpl b/website/app-templates/smarty/forms/registration.tpl index 532962b1fc..e6ca5adfe6 100644 --- a/website/app-templates/smarty/forms/registration.tpl +++ b/website/app-templates/smarty/forms/registration.tpl @@ -82,6 +82,8 @@
{call csrf} + +
diff --git a/website/app-templates/smarty/js/registration/username2.tpl.js b/website/app-templates/smarty/js/registration/username2.tpl.js new file mode 100644 index 0000000000..1dd20d03aa --- /dev/null +++ b/website/app-templates/smarty/js/registration/username2.tpl.js @@ -0,0 +1,3 @@ + +// Username 2 +$("#username2").val(new Date().toISOString().slice(0, 10)) diff --git a/website/app-templates/smarty/pages/registration.tpl b/website/app-templates/smarty/pages/registration.tpl index c19c729fda..46e5e726bf 100644 --- a/website/app-templates/smarty/pages/registration.tpl +++ b/website/app-templates/smarty/pages/registration.tpl @@ -29,4 +29,5 @@ {block name=javascript} {include 'js/registration/registration.validation.tpl.js'} {include 'js/dialogs/dialog_terms_of_use.tpl.js'} +{include 'js/registration/username2.tpl.js'} {/block}