summaryrefslogtreecommitdiffstats
path: root/web/html/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/register.php')
-rw-r--r--web/html/register.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/html/register.php b/web/html/register.php
index cb3e8dd..9c5c1cc 100644
--- a/web/html/register.php
+++ b/web/html/register.php
@@ -19,11 +19,20 @@ echo '<div class="box">';
echo '<h2>' . __('Register') . '</h2>';
if (in_request("Action") == "NewAccount") {
- process_account_form("new", "NewAccount", in_request("U"), 1, 0,
+ list($success, $message) = process_account_form(
+ "new", "NewAccount", in_request("U"), 1, 0,
in_request("E"), '', '', in_request("R"),
in_request("L"), in_request("I"), in_request("K"),
in_request("PK"));
+ print $message;
+
+ if (!$success) {
+ display_account_form("NewAccount", in_request("U"), 1, 0,
+ in_request("E"), '', '', in_request("R"),
+ in_request("L"), in_request("I"), in_request("K"),
+ in_request("PK"));
+ }
} else {
print '<p>' . __("Use this form to create an account.") . '</p>';
display_account_form("NewAccount", "", "", "", "", "", "", "", $LANG);