Code Duplication    Length = 4-4 lines in 2 locations

www/engine/System/Classes/Modules/Auth/Controller/Login.php 1 location

@@ 57-60 (lines=4) @@
54
55
			$init_by = ((false !== $name) ? 'name' : 'email');
56
57
			if ((!$this->user->init($$init_by, $init_by)) || (Auth::isAdmin() && ($this->user->rank < RANK_ADMINISTRATOR))) {
58
59
				return ['name_email', ('USER_ERROR_' . strtoupper($init_by) .'_INCORRECT')];
60
			}
61
62
			# Check password
63

www/engine/System/Classes/Modules/Auth/Controller/Reset.php 1 location

@@ 57-60 (lines=4) @@
54
55
			$init_by = ((false !== $name) ? 'name' : 'email');
56
57
			if ((!$this->user->init($$init_by, $init_by)) || (Auth::isAdmin() && ($this->user->rank < RANK_ADMINISTRATOR))) {
58
59
				return ['name_email', ('USER_ERROR_' . strtoupper($init_by) .'_INCORRECT')];
60
			}
61
62
			# Check access
63