Fixed activation, password reset and registration
This commit is contained in:
parent
0ad39c241e
commit
0b058565ba
3 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue