1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Add method to unset a Fever password

This commit is contained in:
J. King 2019-03-20 10:42:04 -04:00
parent 1e2d595992
commit 9168155244

View file

@ -104,4 +104,8 @@ class API extends \JKingWeb\Arsse\REST\AbstractHandler {
Arsse::$db->tokenCreate($user, "fever.login", $hash);
return $password;
}
public static function unregisterUser(string $user): bool {
return (bool) Arsse::$db->tokenRevoke($user, "fever.login");
}
}