src/Ubiquity/controllers/auth/AuthController.php
public function badLogin() {
		$fMessage = new FlashMessage ( "Invalid creditentials!", "Connection problem", "warning", "warning circle" );
		$this->badLoginMessage ( $fMessage );
		$attemptsMessage = "";
		if (($nbAttempsMax = $this->attemptsNumber ()) !== null) {
			$nb = USession::getTmp ( $this->_attemptsSessionKey, $nbAttempsMax );
			$nb --;
			if ($nb < 0)
				$nb = 0;
			if ($nb == 0) {
				$fAttemptsNumberMessage = $this->noAttempts ();
			} else {
				$fAttemptsNumberMessage = new FlashMessage ( "<i class='ui warning icon'></i> You still have {_attemptsCount} attempts to log in.", null, "bottom attached warning", "" );
			}
			USession::setTmp ( $this->_attemptsSessionKey, $nb, $this->attemptsTimeout () );
			$this->attemptsNumberMessage ( $fAttemptsNumberMessage, $nb );
			$fAttemptsNumberMessage->parseContent ( [ "_attemptsCount" => $nb,"_timer" => "<span id='timer'></span>" ] );
			$attemptsMessage = $this->fMessage ( $fAttemptsNumberMessage, "timeout-message" );
			$fMessage->addType ( "attached" );
		}
		$message = $this->fMessage ( $fMessage, "bad-login" ) . $attemptsMessage;
		$this->authLoadView ( $this->_getFiles ()->getViewNoAccess (), [ "_message" => $message,"authURL" => $this->getBaseUrl (),"bodySelector" => $this->_getBodySelector (),"_loginCaption" => $this->_loginCaption ] );
	}
public function badLogin() {
		$fMessage = new FlashMessage ( "Invalid creditentials!", "Connection problem", "warning", "warning circle" );
		$this->badLoginMessage ( $fMessage );
		$attemptsMessage = "";
		if (($nbAttempsMax = $this->attemptsNumber ()) !== null) {
			$nb = USession::getTmp ( $this->_attemptsSessionKey, $nbAttempsMax );
			$nb --;
			if ($nb < 0)
				$nb = 0;
			if ($nb == 0) {
				$fAttemptsNumberMessage = $this->noAttempts ();
			} else {
				$fAttemptsNumberMessage = new FlashMessage ( "<i class='ui warning icon'></i> You still have {_attemptsCount} attempts to log in.", null, "bottom attached warning", "" );
			}
			USession::setTmp ( $this->_attemptsSessionKey, $nb, $this->attemptsTimeout () );
			$this->attemptsNumberMessage ( $fAttemptsNumberMessage, $nb );
			$fAttemptsNumberMessage->parseContent ( [ "_attemptsCount" => $nb,"_timer" => "<span id='timer'></span>" ] );
			$attemptsMessage = $this->fMessage ( $fAttemptsNumberMessage, "timeout-message" );
			$fMessage->addType ( "attached" );
		}
		$message = $this->fMessage ( $fMessage, "bad-login" ) . $attemptsMessage;
		$this->authLoadView ( $this->_getFiles ()->getViewNoAccess (), [ "_message" => $message,"authURL" => $this->getBaseUrl (),"bodySelector" => $this->_getBodySelector (),"_loginCaption" => $this->_loginCaption ] );
	}
public function badLogin ( ) { $ fMessage = new FlashMessage ( "Invalid creditentials!" , "Connection problem" , "warning" , "warning circle" ) ; $ this -> badLoginMessage ( $ fMessage ) ; $ attemptsMessage = "" ; if ( ( $ nbAttempsMax = $ this -> attemptsNumber ( ) ) !== null ) { $ nb = USession :: getTmp ( $ this -> _attemptsSessionKey , $ nbAttempsMax ) ; $ nb -- ; if ( $ nb < 0 ) $ nb = 0 ; if ( $ nb == 0 ) { $ fAttemptsNumberMessage = $ this -> noAttempts ( ) ; } else { $ fAttemptsNumberMessage = new FlashMessage ( "<i class='ui warning icon'></i> You still have {_attemptsCount} attempts to log in." , null , "bottom attached warning" , "" ) ; } USession :: setTmp ( $ this -> _attemptsSessionKey , $ nb , $ this -> attemptsTimeout ( ) ) ; $ this -> attemptsNumberMessage ( $ fAttemptsNumberMessage , $ nb ) ; $ fAttemptsNumberMessage -> parseContent ( [ "_attemptsCount" => $ nb , "_timer" => "<span id='timer'></span>" ] ) ; $ attemptsMessage = $ this -> fMessage ( $ fAttemptsNumberMessage , "timeout-message" ) ; $ fMessage -> addType ( "attached" ) ; } $ message = $ this -> fMessage ( $ fMessage , "bad-login" ) . $ attemptsMessage ; $ this -> authLoadView ( $ this -> _getFiles ( ) -> getViewNoAccess ( ) , [ "_message" => $ message , "authURL" => $ this -> getBaseUrl ( ) , "bodySelector" => $ this -> _getBodySelector ( ) , "_loginCaption" => $ this -> _loginCaption ] ) ; }
Default Action for invalid creditentials
Default Action for invalid creditentials