[FEATURE] Скрипт привязки под IPS

By https://github.com/DarkShyMW/Launcher
This commit is contained in:
Gravit 2019-02-10 23:35:39 +07:00
parent acf8370c54
commit dd586f23eb
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

22
compat/auth/ips.php Normal file
View file

@ -0,0 +1,22 @@
<?php
if ( !isset( $_GET['login'] ) OR !isset( $_GET['password'] ) )
{
exit;
}
require_once 'init.php';
$member = \IPS\Member::load( $_GET['login'], 'name' );
if ( $member->member_id )
{
if ( strcmp( $member->members_pass_hash, $member->encryptedPassword( $_GET['password'] ) ) === 0 )
{
echo 'OK:' . $member->name;
}
else
{
echo 'Incorrect login or password';
}
}
else
{
echo 'Incorrect login or password';
}