Fixed activation, password reset and registration

This commit is contained in:
Marcin Kurczewski 2014-05-03 23:23:13 +02:00
parent 0ad39c241e
commit 0b058565ba
3 changed files with 4 additions and 2 deletions

View file

@ -141,8 +141,10 @@ foreach (['GET', 'POST'] as $method)
\Chibi\Router::register(['UserController', 'settingsAction'], $method, '/user/{name}/settings', $userValidations);
\Chibi\Router::register(['UserController', 'editAction'], $method, '/user/{name}/edit', $userValidations);
\Chibi\Router::register(['UserController', 'activationAction'], $method, '/activation/{token}', $userValidations);
\Chibi\Router::register(['UserController', 'activationProxyAction'], $method, '/activation-proxy', $userValidations);
\Chibi\Router::register(['UserController', 'activationProxyAction'], $method, '/activation-proxy/{token}', $userValidations);
\Chibi\Router::register(['UserController', 'passwordResetAction'], $method, '/password-reset/{token}', $userValidations);
\Chibi\Router::register(['UserController', 'passwordResetProxyAction'], $method, '/password-reset-proxy', $userValidations);
\Chibi\Router::register(['UserController', 'passwordResetProxyAction'], $method, '/password-reset-proxy/{token}', $userValidations);
\Chibi\Router::register(['UserController', 'toggleSafetyAction'], $method, '/user/toggle-safety/{safety}', $userValidations);
}

View file

@ -2,7 +2,7 @@
Assets::setSubTitle('registration form');
?>
<?php if ($this->context->transport->success === true): ?>
<?php if (isset($this->context->transport->message)): ?>
<?php \Chibi\View::render('message', $this->context) ?>
<?php else: ?>
<?php

View file

@ -1,4 +1,4 @@
<?php if ($this->context->transport->success === true): ?>
<?php if (isset($this->context->transport->message)): ?>
<?php \Chibi\View::render('message', $this->context) ?>
<?php else: ?>
<?php