mirror of
https://github.com/exzork/GCAuth.git
synced 2024-11-24 00:23:58 +00:00
Merge branch 'main' into improve
This commit is contained in:
commit
44f47d985c
@ -16,7 +16,7 @@ Grasscutter Authentication System
|
|||||||
- To use access control, you need set the `ACCESS_KEY` in config.json inside plugins/GCAuth. (Optional)
|
- To use access control, you need set the `ACCESS_KEY` in config.json inside plugins/GCAuth. (Optional)
|
||||||
- All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces )
|
- All payload must be send with `application/json` and Compact JSON format ( without unnecessary spaces )
|
||||||
- Auth endpoint is:
|
- Auth endpoint is:
|
||||||
- Authentication Checking : `/authentication/type` (GET) , it'll return `GCAuthAuthentication` if GCAuth is loaded and enabled.
|
- Authentication Checking : `/authentication/type` (GET) , it'll return `GCAuthAuthenticationHanlder` if GCAuth is loaded and enabled.
|
||||||
- Register: `/authentication/register` (POST)
|
- Register: `/authentication/register` (POST)
|
||||||
```
|
```
|
||||||
{"username":"username","password":"password","password_confirmation":"password_confirmation"}
|
{"username":"username","password":"password","password_confirmation":"password_confirmation"}
|
||||||
|
@ -192,7 +192,6 @@ public class GCAuthExternalAuthenticator implements ExternalAuthenticator {
|
|||||||
Grasscutter.getLogger().error("[Dispatch] Error while changing user password.");
|
Grasscutter.getLogger().error("[Dispatch] Error while changing user password.");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
response.send(authResponse);
|
response.send(authResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user