/** * Updates the username and password credentials from the POST vars, if the POST parameters * are available. Sets the authentication status to REAUTHENTICATION_NEEDED, if credentials have been sent. * * @return void * @author Andreas Förthner <*****@*****.**> */ public function updateCredentials(\TYPO3\FLOW3\MVC\RequestInterface $request) { $postArguments = $this->environment->getRawPostArguments(); if (isset($postArguments['TYPO3\\FLOW3\\Security\\Authentication\\Token\\UsernamePassword::username']) && isset($postArguments['TYPO3\\FLOW3\\Security\\Authentication\\Token\\UsernamePassword::password'])) { $this->credentials['username'] = $postArguments['TYPO3\\FLOW3\\Security\\Authentication\\Token\\UsernamePassword::username']; $this->credentials['password'] = $postArguments['TYPO3\\FLOW3\\Security\\Authentication\\Token\\UsernamePassword::password']; $this->setAuthenticationStatus(self::AUTHENTICATION_NEEDED); } }