From 7acee9575ff749c58c5f7f8948309516a74207c1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 15 Oct 2005 18:13:55 +0000 Subject: [PATCH] r553: Force unique display name --- register.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/register.php b/register.php index ee039be..3ddff4d 100755 --- a/register.php +++ b/register.php @@ -87,6 +87,11 @@ if ($_POST['do'] == 'insert') $message->phrase[] = $lang->string('The specified email is already in use.'); } + if (is_array($db->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE displayname = '" . $bugsys->in['displayname'] . "'"))) + { + $message->phrase[] = $lang->string('That display name is already in use by another user'); + } + if ($message->phrase) { $message->error_list_process(); -- 2.43.5