*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_config('site', 'closed')) {
// TRANS: Client error displayed when trying to register to a closed site.
// TRANS: Client error displayed when trying to register while already logged in.
$this->clientError(_('Already logged in.'));
} else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- $this->tryRegister();
+ try {
+ $this->tryRegister();
+ } catch (ClientException $e) {
+ $this->showForm($e->getMessage());
+ }
} else {
$this->showForm();
}
'id' => 'license',
'class' => 'checkbox',
'name' => 'license',
+ 'required' => 'true',
'value' => 'true');
if ($this->boolean('license')) {
$attrs['checked'] = 'checked';