Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3676dc
commit e398ffd
Showing
17 changed files
with
117 additions
and
85 deletions.
There are no files selected for viewing
36 changes: 31 additions & 5 deletions
36
Classes/Authentication/GpsNoseBasedAuthenticationService.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
<?php | ||
|
||
namespace SmartNoses\Gpsnose\Authentication; | ||
|
||
use TYPO3\CMS\Core\Authentication\AuthenticationService; | ||
use Psr\Http\Message\ServerRequestInterface; | ||
use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication; | ||
|
||
class GpsNoseBasedAuthenticationService extends AuthenticationService | ||
class GpsNoseBasedAuthenticationService extends FrontendUserAuthentication | ||
{ | ||
public function authUser(array $user): int | ||
|
||
public $info = null; | ||
public $login = null; | ||
|
||
public function init() | ||
{ | ||
} | ||
public function getLastErrorArray() | ||
{ | ||
} | ||
|
||
/** | ||
* Undocumented function | ||
* | ||
* @param ServerRequestInterface $request | ||
* @return void | ||
*/ | ||
public function getLoginFormData(ServerRequestInterface $request = null) | ||
{ | ||
return ($user['username'] == $_POST['user'] && $user['password'] == $_POST['pass']) ? 200 : 100; | ||
$userInfo = [ | ||
'status' => $_POST['logintype'], | ||
'uname' => $_POST['user'], | ||
'uident' => $_POST['pass'], | ||
'uident_text' => $_POST['pass'], | ||
]; | ||
$this->login = $userInfo; | ||
return $userInfo; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.