Commit cc1a9ce0 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix for uid checks.

parent 1a694ab3
......@@ -250,9 +250,9 @@ my ($value, $user_urn, $user_uid, $user_hrn, $user_email, $project, $pid,
# Username and email has to be acceptable to Emulab user system.
$value = $xmlparse->{'attribute'}->{"username"}->{'value'};
if (! TBcheck_dbslot($value, "users", "usr_name",
if (! TBcheck_dbslot($value, "users", "uid",
fatal("Illegal username: $value");
fatal("Illegal username: $value - " . TBFieldErrorString());
$user_uid = $value;
$user_urn = GeniHRN::Generate("$OURDOMAIN", "user", $user_uid);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment