@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 15 | + if (Auth::initial()) Request::redirect(INSTALL_PATH.'/admin/register'); |
|
| 16 | 16 | |
| 17 | 17 | return (new Auth\Action\Reset)->handle(); |
| 18 | 18 | } |
@@ -12,7 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 15 | + if (Auth::initial()) { |
|
| 16 | + Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 17 | + } |
|
| 16 | 18 | |
| 17 | 19 | return (new Auth\Action\Reset)->handle(); |
| 18 | 20 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (!Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/login'); |
|
| 15 | + if (!Auth::initial()) Request::redirect(INSTALL_PATH.'/admin/login'); |
|
| 16 | 16 | |
| 17 | 17 | return (new Auth\Action\Register)->handle(); |
| 18 | 18 | } |
@@ -12,7 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (!Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/login'); |
|
| 15 | + if (!Auth::initial()) { |
|
| 16 | + Request::redirect(INSTALL_PATH . '/admin/login'); |
|
| 17 | + } |
|
| 16 | 18 | |
| 17 | 19 | return (new Auth\Action\Register)->handle(); |
| 18 | 20 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 15 | + if (Auth::initial()) Request::redirect(INSTALL_PATH.'/admin/register'); |
|
| 16 | 16 | |
| 17 | 17 | return (new Auth\Action\Recover)->handle(); |
| 18 | 18 | } |
@@ -12,7 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 15 | + if (Auth::initial()) { |
|
| 16 | + Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 17 | + } |
|
| 16 | 18 | |
| 17 | 19 | return (new Auth\Action\Recover)->handle(); |
| 18 | 20 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 15 | + if (Auth::initial()) Request::redirect(INSTALL_PATH.'/admin/register'); |
|
| 16 | 16 | |
| 17 | 17 | return (new Auth\Action\Login)->handle(); |
| 18 | 18 | } |
@@ -12,7 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | protected function handle() { |
| 14 | 14 | |
| 15 | - if (Auth::initial()) Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 15 | + if (Auth::initial()) { |
|
| 16 | + Request::redirect(INSTALL_PATH . '/admin/register'); |
|
| 17 | + } |
|
| 16 | 18 | |
| 17 | 19 | return (new Auth\Action\Login)->handle(); |
| 18 | 20 | } |
@@ -20,7 +20,9 @@ |
||
| 20 | 20 | |
| 21 | 21 | # Implement form |
| 22 | 22 | |
| 23 | - if (null !== $this->form) $this->form->implement($contents); |
|
| 23 | + if (null !== $this->form) { |
|
| 24 | + $this->form->implement($contents); |
|
| 25 | + } |
|
| 24 | 26 | |
| 25 | 27 | # ------------------------ |
| 26 | 28 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | if ($this->form->handle(new Auth\Controller\Reset())) { |
| 22 | 22 | |
| 23 | - Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile') . '/login?submitted=reset'); |
|
| 23 | + Request::redirect(INSTALL_PATH.(Auth::admin() ? '/admin' : '/profile').'/login?submitted=reset'); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | # ------------------------ |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | if ($this->form->handle(new Auth\Controller\Register())) { |
| 22 | 22 | |
| 23 | - Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile') . '/login?submitted=register'); |
|
| 23 | + Request::redirect(INSTALL_PATH.(Auth::admin() ? '/admin' : '/profile').'/login?submitted=register'); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | # ------------------------ |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | if (false !== ($code = Auth::secret())) $this->code = $code; |
| 18 | 18 | |
| 19 | - else Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile') . '/reset'); |
|
| 19 | + else Request::redirect(INSTALL_PATH.(Auth::admin() ? '/admin' : '/profile').'/reset'); |
|
| 20 | 20 | |
| 21 | 21 | # Create form |
| 22 | 22 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | if ($this->form->handle(new Auth\Controller\Recover())) { |
| 28 | 28 | |
| 29 | - Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile') . '/login?submitted=recover'); |
|
| 29 | + Request::redirect(INSTALL_PATH.(Auth::admin() ? '/admin' : '/profile').'/login?submitted=recover'); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | # ------------------------ |
@@ -14,9 +14,11 @@ |
||
| 14 | 14 | |
| 15 | 15 | # Init user by secret code |
| 16 | 16 | |
| 17 | - if (false !== ($code = Auth::secret())) $this->code = $code; |
|
| 18 | - |
|
| 19 | - else Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile') . '/reset'); |
|
| 17 | + if (false !== ($code = Auth::secret())) { |
|
| 18 | + $this->code = $code; |
|
| 19 | + } else { |
|
| 20 | + Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile') . '/reset'); |
|
| 21 | + } |
|
| 20 | 22 | |
| 21 | 23 | # Create form |
| 22 | 24 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | if ($this->form->handle(new Auth\Controller\Login())) { |
| 22 | 22 | |
| 23 | - Request::redirect(INSTALL_PATH . (Auth::admin() ? '/admin' : '/profile')); |
|
| 23 | + Request::redirect(INSTALL_PATH.(Auth::admin() ? '/admin' : '/profile')); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | # Display success message |