Reset::handle()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 0
1
<?php
2
3
/**
4
 * @package Cadmium\System\Modules\Auth
5
 * @author Anton Romanov
6
 * @copyright Copyright (c) 2015-2017, Anton Romanov
7
 * @link http://cadmium-cms.com
8
 */
9
10
namespace Modules\Auth\Handler {
11
12
	use Frames, Modules\Auth, Request, Template;
13
14
	class Reset extends Frames\Admin\Area\Auth {
15
16
		protected $_title = 'TITLE_AUTH_RESET';
17
18
		/**
19
		 * Handle the request
20
		 */
21
22
		public function handle() : Template\Block {
23
24
			if (Auth::isInitial()) Request::redirect(INSTALL_PATH . '/admin/register');
25
26
			return (new Auth\Action\Reset)->handle();
27
		}
28
	}
29
}
30