$services.localization.render('core.register.welcome')
+ #end + #if($reg && $reg <= 0) + #if($reg == -2) + #error($services.localization.render('core.register.passwordMismatch')) + #elseif($reg == -3) + #error($services.localization.render('core.register.userAlreadyExists')) + #elseif($reg == -4) + #error($services.localization.render('core.register.invalidUsername')) + #elseif($reg == -8) + #error($services.localization.render('core.register.userAlreadyExists')) + #else + #error($services.localization.render('core.register.registerFailed', [$reg])) + #end + #elseif($reg) + #set($xwname = "XWiki.${request.xwikiname}") + #info($services.localization.render('core.register.successful', [$xwiki.getUserName($xwname), ${escapetool.xml($request.xwikiname)}])) + #end + #if(!$reg || $reg < 0) + + #end +#else + ## An override exists in the wiki, display it + #set($doc = $xwiki.getDocument('PhenomeCentral.RegistrationWiki')) + $xwiki.includeTopic('PhenomeCentral.RegistrationWiki', false) +#end