mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use username from the database if one is provided by the user
This fixes a bug where the new user name input by the user was invalid, causing the account deletion link and the form action to be wrong. Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
f2ff9782a5
commit
7927a6decd
3 changed files with 9 additions and 7 deletions
|
@ -1,9 +1,9 @@
|
|||
<?php if ($A == "UpdateAccount"): ?>
|
||||
<p>
|
||||
<?= __('Click %shere%s if you want to permanently delete this account.', '<a href="' . get_user_uri($U) . 'delete/' . '">', '</a>') ?>
|
||||
<?= __('Click %shere%s if you want to permanently delete this account.', '<a href="' . get_user_uri($N) . 'delete/' . '">', '</a>') ?>
|
||||
</p>
|
||||
|
||||
<form id="edit-profile-form" action="<?= get_user_uri($U) . 'update/'; ?>" method="post">
|
||||
<form id="edit-profile-form" action="<?= get_user_uri($N) . 'update/'; ?>" method="post">
|
||||
<?php else: ?>
|
||||
<form id="edit-profile-form" action="<?= get_uri('/register/'); ?>" method="post">
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue