Merge branch 'main' into improve

This commit is contained in:
Muhammad Eko Prasetyo 2022-05-15 09:35:41 +07:00 committed by GitHub
commit 44f47d985c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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"}

View File

@ -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);
} }
} }