Merge pull request #18 from omg-xtao/break

Adapt PR#964 breaking changes
This commit is contained in:
Muhammad Eko Prasetyo 2022-05-18 05:45:23 +07:00 committed by GitHub
commit 66df9935d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
package me.exzork.gcauth.handler;
import emu.grasscutter.auth.*;
import emu.grasscutter.game.Account;
import emu.grasscutter.server.http.objects.ComboTokenResJson;
import emu.grasscutter.server.http.objects.LoginResultJson;
@ -21,8 +22,8 @@ public class GCAuthAuthenticationHandler implements AuthenticationSystem {
}
@Override
public boolean verifyUser(String s) {
return false;
public Account verifyUser(String s) {
return null;
}
@Override

View File

@ -11,7 +11,7 @@ import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
import java.util.HashMap;
public final class Authentication {
public static final HashMap<String,String> tokens = new HashMap<String,String>();
public static final HashMap<String,String> tokens = new HashMap<>();
private static Algorithm key = Algorithm.HMAC256(generateRandomString(32));
public static Algorithm getKey() {
return key;