Modified the format of password_file.conf now accept only sha256 hashed passwords
This commit is contained in:
@@ -17,7 +17,9 @@ package org.eclipse.moquette.spi.impl;
|
||||
|
||||
import org.eclipse.moquette.server.IAuthenticator;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -47,5 +49,5 @@ public class FileAuthenticatorTest {
|
||||
|
||||
assertFalse(auth.checkValid("testuser2", "passwd"));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
testuser:passwd
|
||||
#the password is sha256(passwd)
|
||||
testuser:0d6be69b264717f2dd33652e212b173104b4a647b7c11ae72e9885f11cd312fb
|
||||
@@ -1 +1,2 @@
|
||||
testuser:passwd
|
||||
#the password is sha256(passwd)
|
||||
testuser:0d6be69b264717f2dd33652e212b173104b4a647b7c11ae72e9885f11cd312fb
|
||||
Reference in New Issue
Block a user