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;
|
package me.exzork.gcauth.handler;
|
||||||
|
|
||||||
import emu.grasscutter.auth.*;
|
import emu.grasscutter.auth.*;
|
||||||
|
import emu.grasscutter.game.Account;
|
||||||
import emu.grasscutter.server.http.objects.ComboTokenResJson;
|
import emu.grasscutter.server.http.objects.ComboTokenResJson;
|
||||||
import emu.grasscutter.server.http.objects.LoginResultJson;
|
import emu.grasscutter.server.http.objects.LoginResultJson;
|
||||||
|
|
||||||
@ -21,8 +22,8 @@ public class GCAuthAuthenticationHandler implements AuthenticationSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean verifyUser(String s) {
|
public Account verifyUser(String s) {
|
||||||
return false;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -11,7 +11,7 @@ import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
public final class Authentication {
|
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));
|
private static Algorithm key = Algorithm.HMAC256(generateRandomString(32));
|
||||||
public static Algorithm getKey() {
|
public static Algorithm getKey() {
|
||||||
return key;
|
return key;
|
||||||
|
Loading…
Reference in New Issue
Block a user