mirror of
https://github.com/exzork/GCAuth.git
synced 2024-11-27 18:01:14 +00:00
Merge pull request #18 from omg-xtao/break
Adapt PR#964 breaking changes
This commit is contained in:
commit
66df9935d2
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user