Fixed various spelling and grammar issues

This commit is contained in:
Tim Visée
2015-11-23 22:07:32 +01:00
parent c3fa8b272f
commit 47b1d00ccf
24 changed files with 265 additions and 268 deletions
@@ -153,11 +153,11 @@ public class PasswordSecurity {
*/
public static boolean comparePasswordWithHash(String password, String hash,
String playerName) throws NoSuchAlgorithmException {
HashAlgorithm algo = Settings.getPasswordHash;
HashAlgorithm algorithm = Settings.getPasswordHash;
EncryptionMethod method;
try {
if (algo != HashAlgorithm.CUSTOM)
method = (EncryptionMethod) algo.getclasse().newInstance();
if (algorithm != HashAlgorithm.CUSTOM)
method = (EncryptionMethod) algorithm.getclasse().newInstance();
else
method = null;