mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Merge pull request #316 from Tedyst/master
Modified regex in file database mode
This commit is contained in:
commit
e83af9b687
|
@ -68,7 +68,7 @@ export class FileUsersDatabase implements IUsersDatabase {
|
||||||
password: string)
|
password: string)
|
||||||
: Bluebird<void> {
|
: Bluebird<void> {
|
||||||
const storedHash: string = database.users[username].password;
|
const storedHash: string = database.users[username].password;
|
||||||
const matches = storedHash.match(/rounds=([0-9]+)\$([a-zA-z0-9]+)\$/);
|
const matches = storedHash.match(/rounds=([0-9]+)\$([a-zA-z0-9./]+)\$/);
|
||||||
if (!(matches && matches.length == 3)) {
|
if (!(matches && matches.length == 3)) {
|
||||||
return Bluebird.reject(new Error("Unable to detect the hash salt and rounds. " +
|
return Bluebird.reject(new Error("Unable to detect the hash salt and rounds. " +
|
||||||
"Make sure the password is hashed with SSHA512."));
|
"Make sure the password is hashed with SSHA512."));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user