reguser.cgi: error instead of die on bad user name
commit25231abbe0e9a61d4b53327d07a70715f51d25ed
authorKyle J. McKay <mackyle@gmail.com>
Fri, 23 Aug 2013 19:34:42 +0000 (23 12:34 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 23 Aug 2013 19:34:42 +0000 (23 12:34 -0700)
tree4d46158ab9ff9cdb69a9a2e213e10504e0982652
parenta29553542c3ec61bdff94d40e2f2763f71863804
reguser.cgi: error instead of die on bad user name

Avoid dying when a registration attempt for an invalid user name
is made.  Previously creation of a User instance would be attempted
with the invalid user name which would cause die to execute.

Instead detect the error and handle it the same way as a user name
already exists and bad email error.
cgi/reguser.cgi