mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove superfluous function valid_user()
This helper function was almost 100% identical to uid_from_username(). Switch to using uid_from_username(), which has a much better name and implementation, everywhere. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
396e50bdc8
commit
c5014b0752
2 changed files with 2 additions and 27 deletions
|
@ -24,7 +24,7 @@ if (has_credential(CRED_TU_ADD_VOTE)) {
|
|||
$error = "";
|
||||
|
||||
if (!empty($_POST['user'])) {
|
||||
if (!valid_user($_POST['user'])) {
|
||||
if (!uid_from_username($_POST['user'])) {
|
||||
$error.= __("Username does not exist.");
|
||||
} else {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue