summaryrefslogtreecommitdiff
path: root/modules/webcpanel/templates/default/register.html
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-14 22:51:24 +0000
committerSadie Powell <sadie@witchery.services>2024-03-14 23:10:53 +0000
commit4e9d1835232552a1b86d8666e7e7265ce09cbc6a (patch)
treede02d421cf7bd7c9b28f7d81dcc12279905a4790 /modules/webcpanel/templates/default/register.html
parent074dfb63a76efb905ad8592502585309299583dd (diff)
Restore some functionality that was removed in an earlier commit.
Diffstat (limited to 'modules/webcpanel/templates/default/register.html')
-rw-r--r--modules/webcpanel/templates/default/register.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/webcpanel/templates/default/register.html b/modules/webcpanel/templates/default/register.html
index 311b94cf5..e71d763f6 100644
--- a/modules/webcpanel/templates/default/register.html
+++ b/modules/webcpanel/templates/default/register.html
@@ -34,8 +34,16 @@
style="margin-bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;">
<input type="password" name="password" class="form-control" placeholder="Password" required="required"
style="margin-bottom: -1px; border-radius: 0;">
+
+ {IF EXISTS FORCE_EMAIL}
<input type="email" name="email" class="form-control" placeholder="Email" required="required"
style="margin-bottom: 15px; border-top-left-radius: 0; border-top-right-radius: 0;">
+ {ELSE}
+ <h4>Optional</h4>
+ <input type="email" name="email" class="form-control" placeholder="Email"
+ style="margin-bottom: 15px;">
+ {END IF}
+
<button class="btn btn-lg btn-warning btn-block" type="submit">Register</button>
</form>
</div>