mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-24 09:31:09 +03:00
22 lines
422 B
PHP
22 lines
422 B
PHP
<?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';
|
|
}
|