ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: scripple on March 02, 2014, 06:31:22 pm

Title: Bug in registration when name is reserved
Post by: scripple on March 02, 2014, 06:31:22 pm
When I enter in a reserved name at registration the is an AJAX parsing error so the little box doesn't change to indicate anything is wrong.

TypeError: XMLDoc.getElementsByTagName(...)[0] is undefined
$boardurl/elktest/themes/default/scripts/register.js?10beta2
Line 264

The response does indicate the name is reserved though.


   <div id="fatal_error">
      <h2 class="category_header">An Error Has Occurred</h2>
      <div class="generic_list_wrapper">
         <div class="errorbox" id="username_reserved" >The username you tried to use contains the reserved name 'Admin'. Please try another username.</div>
      </div>
   </div>
   <div class="centertext">
      <a class="linkbutton" href="javascript:history.go(-1)">Back[/url]
   </div>
Title: Re: Bug in registration when name is reserved
Post by: Spuds on March 02, 2014, 06:58:54 pm
Thanks, I'll take a look.

The first part of that error is because it did not get an xml response back, the real question is why.
Title: Re: Bug in registration when name is reserved
Post by: Spuds on March 02, 2014, 09:22:40 pm
Fixed here: https://github.com/Spuds/Elkarte/commit/92e4200ace01421a8d96b1f68f4a4080b7035a05
Title: Re: Bug in registration when name is reserved
Post by: scripple on March 02, 2014, 10:35:52 pm
Confirmed working with those mods.  Thanks.