mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FEATURE] Скрипт привязки под IPS
By https://github.com/DarkShyMW/Launcher
This commit is contained in:
parent
acf8370c54
commit
dd586f23eb
1 changed files with 22 additions and 0 deletions
22
compat/auth/ips.php
Normal file
22
compat/auth/ips.php
Normal 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';
|
||||
}
|
Loading…
Reference in a new issue