mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-15 04:21:51 +00:00
French bitlocker fix (#5832)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
76485713df
commit
a77d40505a
1 changed files with 5 additions and 3 deletions
|
@ -447,12 +447,14 @@ function windows_volumes()
|
||||||
var abc = lines[x].trim();
|
var abc = lines[x].trim();
|
||||||
var englishidpass = (abc !== '' && abc.includes('Numerical Password:')); // English ID
|
var englishidpass = (abc !== '' && abc.includes('Numerical Password:')); // English ID
|
||||||
var germanidpass = (abc !== '' && abc.includes('Numerisches Kennwort:')); // German ID
|
var germanidpass = (abc !== '' && abc.includes('Numerisches Kennwort:')); // German ID
|
||||||
|
var frenchidpass = (abc !== '' && abc.includes('Mot de passe num')); // French ID
|
||||||
var englishpass = (abc !== '' && abc.includes('Password:') && !abc.includes('Numerical Password:')); // English Password
|
var englishpass = (abc !== '' && abc.includes('Password:') && !abc.includes('Numerical Password:')); // English Password
|
||||||
var germanpass = (abc !== '' && abc.includes('Kennwort:') && !abc.includes('Numerisches Kennwort:')); // German Password
|
var germanpass = (abc !== '' && abc.includes('Kennwort:') && !abc.includes('Numerisches Kennwort:')); // German Password
|
||||||
if (englishidpass || germanidpass || englishpass || germanpass) {
|
var frenchpass = (abc !== '' && abc.includes('Mot de passe :') && !abc.includes('Mot de passe num')); // French Password
|
||||||
|
if (englishidpass || germanidpass || frenchidpass|| englishpass || germanpass || frenchpass) {
|
||||||
var nextline = lines[x + 1].trim();
|
var nextline = lines[x + 1].trim();
|
||||||
if (x + 1 < lines.length && (nextline !== '' && nextline.startsWith('ID:'))) {
|
if (x + 1 < lines.length && (nextline !== '' && (nextline.startsWith('ID:') || nextline.startsWith('ID :')) )) {
|
||||||
identifier = nextline.replace('ID:','').trim();
|
identifier = nextline.replace('ID:','').replace('ID :', '').trim();
|
||||||
foundIDMarkedLine = true;
|
foundIDMarkedLine = true;
|
||||||
}else if (x + 1 < lines.length && nextline !== '') {
|
}else if (x + 1 < lines.length && nextline !== '') {
|
||||||
password = nextline;
|
password = nextline;
|
||||||
|
|
Loading…
Reference in a new issue