login2
This commit is contained in:
13
authlogin/login_token.php
Normal file
13
authlogin/login_token.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<form method="post" action="api.php/">
|
||||
<input name="token" value=
|
||||
<?php
|
||||
require 'auth.php';
|
||||
|
||||
$auth = new PHP_API_AUTH(array(
|
||||
'secret'=>'someVeryLongPassPhraseChangeMe',
|
||||
'authenticator'=>function($user,$pass){ if ($user=='admin' && $pass=='admin') $_SESSION['user']=$user; }
|
||||
));
|
||||
$auth->executeCommand();
|
||||
?>/>
|
||||
<input type="submit" value="ok">
|
||||
</form>
|
||||
Reference in New Issue
Block a user