Set correct 'My Account' link after changing username
commit8db2ff5da679b3c2d5a53f67f67863d786057f36
authorMarcel Korpel <marcel.korpel@gmail.com>
Sun, 19 Jul 2015 20:32:06 +0000 (19 22:32 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Sat, 8 Aug 2015 10:59:24 +0000 (8 12:59 +0200)
tree3e226df9c508847e4044336e7c506c3e9ac8a250
parentcb9c0d2477480b63294854ce2abf7d9a34059ee6
Set correct 'My Account' link after changing username

Don't print messages (and the account form) in process_account_form()
anymore, but return them to the caller. When updating accounts, this
function will be called before the headers are written.

If a username has been changed by process_account_form(), the headers
now show the updated username from the database in the 'My Account'
link. Clicking on it immediately after changing a username will no
longer lead to a non-existing URL.

Signed-off-by: Marcel Korpel <marcel.korpel@gmail.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
web/html/account.php
web/html/register.php
web/lib/acctfuncs.inc.php