Prevented blank/empty admins from being created. (Bug 3431 r=dvander)
This commit is contained in:
@@ -162,7 +162,9 @@ public SMCResult:ReadUsers_EndSection(Handle:smc)
|
||||
id = CreateAdmin(g_CurName);
|
||||
if (!BindAdminIdentity(id, g_CurAuth, g_CurIdent))
|
||||
{
|
||||
RemoveAdmin(id);
|
||||
ParseError("Failed to bind auth \"%s\" to identity \"%s\"", g_CurAuth, g_CurIdent);
|
||||
return SMCParse_Continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user