mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 04:59:55 +08:00
Custom Authentication Handler
This commit is contained in:
committed by
Melledy
Unverified
parent
186c6bcf89
commit
73fc9fe4cc
+16
@@ -0,0 +1,16 @@
|
||||
package emu.grasscutter.server.dispatch.authentication;
|
||||
|
||||
import emu.grasscutter.server.dispatch.json.LoginAccountRequestJson;
|
||||
import emu.grasscutter.server.dispatch.json.LoginResultJson;
|
||||
import express.http.Request;
|
||||
import express.http.Response;
|
||||
|
||||
public interface AuthenticationHandler {
|
||||
|
||||
// This is in case plugins also want some sort of authentication
|
||||
void handleLogin(Request req, Response res);
|
||||
void handleRegister(Request req, Response res);
|
||||
void handleChangePassword(Request req, Response res);
|
||||
|
||||
LoginResultJson handleGameLogin(Request req, LoginAccountRequestJson requestData);
|
||||
}
|
||||
Reference in New Issue
Block a user