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:
parent
1e2d595992
commit
9168155244
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue