[aur-dev] [PATCH] Make account registration work with recent account editing changes
canyonknight
canyonknight at gmail.com
Sun Sep 16 16:27:27 EDT 2012
The account editing form requires two different form action URLs
due to the fact that the same template is shared for both account
registration and account editing.
Signed-off-by: canyonknight <canyonknight at gmail.com>
---
This patch assumes all previous patches. This should complete those changes
and all account related URLs should be a lot saner now.
web/template/account_edit_form.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 9b5b1d8..b1cb749 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -1,4 +1,8 @@
+<?php if ($A == "UpdateAccount"): ?>
<form action="<?php echo get_user_uri($U) . 'update/'; ?>" method="post">
+<?php else: ?>
+<form action="<?php echo get_uri('/register/'); ?>" method="post">
+<?php endif; ?>
<fieldset>
<input type="hidden" name="Action" value="<?php echo $A ?>" />
<?php if ($UID): ?>
--
1.7.12
More information about the aur-dev
mailing list