mirror of
https://github.com/gamaio/UnPS-API.git
synced 2025-08-13 02:08:45 +00:00
Add username check to reset pass
This feels slightly more secure - Can be direct session username (change password while logged on) - Generate key, link it to username, email key for verification of lost password
This commit is contained in:
@@ -15,6 +15,7 @@ $unpsAPI = new api();
|
||||
//echo $unpsAPI->regUser($apidb, '580658027', $udb, 'David', 'password123', 'tehfoxy.c0de@gmail.com'); // Register users
|
||||
//echo $unpsAPI->regAPI($apidb, '580658027', 'UnPS-GAMA Link Shortener', 'tehfoxy.c0de@gmail.com', '1,0,0,0'); // Register API user
|
||||
|
||||
echo $unpsAPI->resetAPI($apidb, '580658027', 'UnPS-GAMA Link Shortener', 'tehfoxy.c0de@gmail.com', '279qit9');
|
||||
//echo $unpsAPI->resetAPI($apidb, '580658027', 'UnPS-GAMA Link Shortener', 'tehfoxy.c0de@gmail.com', '279qit9'); // test reset api key
|
||||
echo $unpsAPI->resetPass($apidb, '580658027', $udb, 'David', 'tefoxy.c0de@gmail.com', 'password1234s'); // Test change password
|
||||
|
||||
?>
|
Reference in New Issue
Block a user