Code Duplication    Length = 6-7 lines in 2 locations

Ubiquity/controllers/auth/AuthController.php 2 locations

@@ 95-100 (lines=6) @@
92
	/**
93
	 * Default Action for invalid creditentials
94
	 */
95
	public function badLogin(){
96
		$fMessage=new FlashMessage("Invalid creditentials!","Connection problem","warning","warning circle");
97
		$this->badLoginMessage($fMessage);
98
		$message=$this->fMessage($fMessage);
99
		$this->authLoadView($this->_getFiles()->getViewNoAccess(),["_message"=>$message,"authURL"=>$this->_getBaseRoute()]);
100
	}
101
	
102
	/**
103
	 * To override for modifying the bad login message
@@ 126-132 (lines=7) @@
123
	 * Logout action
124
	 * Terminate the session and display a logout message
125
	 */
126
	public function terminate(){
127
		USession::terminate();
128
		$fMessage=new FlashMessage("You have been properly disconnected!","Logout","success","checkmark");
129
		$this->terminateMessage($fMessage);
130
		$message=$this->fMessage($fMessage);
131
		$this->authLoadView($this->_getFiles()->getViewNoAccess(),["_message"=>$message,"authURL"=>$this->_getBaseRoute()]);
132
	}
133
	
134
	/**
135
	 * To override for modifying the logout message