Add verifyUser to AuthenticationHandler

This commit is contained in:
Benjamin Elsdon
2022-05-11 20:35:27 +08:00
committed by Melledy
Unverified
parent 9ed1bb9b94
commit c932f9c7e5
3 changed files with 16 additions and 0 deletions
@@ -12,5 +12,12 @@ public interface AuthenticationHandler {
void handleRegister(Request req, Response res);
void handleChangePassword(Request req, Response res);
/**
* Other plugins may need to verify a user's identity using details from handleLogin()
* @param details The user's unique one-time token that needs to be verified
* @return If the verification was successful
*/
boolean verifyUser(String details);
LoginResultJson handleGameLogin(Request req, LoginAccountRequestJson requestData);
}