mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-09 04:02:10 +01:00
commit
e816db687c
11
pom.xml
11
pom.xml
@ -116,7 +116,7 @@
|
||||
<version>3.5.1</version>
|
||||
<configuration>
|
||||
<projectId>55bab9e8653762002000190a</projectId>
|
||||
<!--<apiKey>my_secret_api_key</apiKey>-->>
|
||||
<!--<apiKey>my_secret_api_key</apiKey> -->
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
@ -178,6 +178,12 @@
|
||||
<url>http://ci.xephi.fr/plugin/repository/everything/</url>
|
||||
</repository>
|
||||
|
||||
<!-- Metrics Snapshots Repo -->
|
||||
<repository>
|
||||
<id>mcstats-snapshots</id>
|
||||
<url>http://repo.mcstats.org/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
@ -233,10 +239,11 @@
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Metrics API -->
|
||||
<dependency>
|
||||
<groupId>org.mcstats.bukkit</groupId>
|
||||
<artifactId>metrics</artifactId>
|
||||
<version>R7</version>
|
||||
<version>R8-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
@ -395,7 +395,7 @@ public class BCRYPT implements EncryptionMethod {
|
||||
off = 3;
|
||||
else {
|
||||
minor = salt.charAt(2);
|
||||
if (minor != 'a' || salt.charAt(3) != '$')
|
||||
if (minor < 'a' || minor > 'z' || salt.charAt(3) != '$')
|
||||
throw new IllegalArgumentException("Invalid salt revision");
|
||||
off = 4;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ public class BCRYPT2Y implements EncryptionMethod {
|
||||
@Override
|
||||
public boolean comparePassword(String hash, String password,
|
||||
String playerName) throws NoSuchAlgorithmException {
|
||||
String ok = hash.substring(29);
|
||||
String ok = hash.substring(0, 29);
|
||||
if (ok.length() != 29)
|
||||
return false;
|
||||
return hash.equals(getHash(password, ok, playerName));
|
||||
|
Loading…
Reference in New Issue
Block a user