working test for login
This commit is contained in:
19
interfaceServices/fake_loginInterface.php
Normal file
19
interfaceServices/fake_loginInterface.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$username = $_POST["userName"];
|
||||
$password = $_POST["password"];
|
||||
|
||||
if( $username == "admin" && $password == "admin" ){
|
||||
$userData = array();
|
||||
$userDatap["id"] = "12345";
|
||||
$userDatap["username"] = "admin";
|
||||
$userDatap["firstName"] = "TestFirst";
|
||||
$userDatap["lastName"] = "TestLast";
|
||||
$userDatap["token"] = "fake-jwt-token";
|
||||
|
||||
echo( json_encode( $userDatap ) );
|
||||
}else{
|
||||
http_response_code(400);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user