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}