Code Duplication    Length = 6-7 lines in 2 locations

Ubiquity/controllers/auth/AuthController.php 2 locations

@@ 103-108 (lines=6) @@
100
	/**
101
	 * Default Action for invalid creditentials
102
	 */
103
	public function badLogin(){
104
		$fMessage=new FlashMessage("Invalid creditentials!","Connection problem","warning","warning circle");
105
		$this->badLoginMessage($fMessage);
106
		$message=$this->fMessage($fMessage);
107
		$this->authLoadView($this->_getFiles()->getViewNoAccess(),["_message"=>$message,"authURL"=>$this->_getBaseRoute(),"bodySelector"=>$this->_getBodySelector()]);
108
	}
109
	
110
	/**
111
	 * To override for modifying the bad login message
@@ 134-140 (lines=7) @@
131
	 * Logout action
132
	 * Terminate the session and display a logout message
133
	 */
134
	public function terminate(){
135
		USession::terminate();
136
		$fMessage=new FlashMessage("You have been properly disconnected!","Logout","success","checkmark");
137
		$this->terminateMessage($fMessage);
138
		$message=$this->fMessage($fMessage);
139
		$this->authLoadView($this->_getFiles()->getViewNoAccess(),["_message"=>$message,"authURL"=>$this->_getBaseRoute(),"bodySelector"=>$this->_getBodySelector()]);
140
	}
141
	
142
	public function _disConnected(){
143
		$fMessage=new FlashMessage("You have been disconnected from the application!","Logout","","sign out");