summaryrefslogtreecommitdiff
path: root/modules/webcpanel/templates/default
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webcpanel/templates/default')
-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>