Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test crypt_tokens parameter if SMS feature is enabled #874

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions htdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
# Check PHP xml presence
if ( ! function_exists('utf8_decode') ) { $dependency_check_results[] = "nophpxml"; }

# Check crypt_tokens option
if ( $use_sms and !$crypt_tokens ) { $dependency_check_results[] = "nocrypttokens"; }

# Check keyphrase setting
if ( ( ( $use_tokens and $crypt_tokens ) or $use_sms or $crypt_answers ) and ( empty($keyphrase) or $keyphrase == "secret") ) { $dependency_check_results[] = "nokeyphrase"; }

Expand Down
1 change: 1 addition & 0 deletions lang/ar.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "PHP LDAP لاستعمال هذه الأداة يجب تنزيل";
$messages['nophpmhash'] = "PHP mhash يجب عليك تثبيت Samba لاستخدام وضع";
$messages['nokeyphrase'] = "keyphrase يتطلب تشفير الرمز سلسلة عشوائية في إعداد";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "LDAP يتعذر الوصول إلى دليل";
$messages['loginrequired'] = "يجب إدخال اسم المستخدم الخاص بك";
Expand Down
1 change: 1 addition & 0 deletions lang/ca.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
$messages['nophpldap'] = "Cal instal·lar PHP LDAP per fer servir aquesta eina";
$messages['nophpmhash'] = "Cal instal·lar PHP mhash per fer servir el mode Samba";
$messages['nokeyphrase'] = "El xifrat per testimoni requereix una cadena aleatòria a la configuració de la frase clau";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "No es pot accedir al servidor LDAP";
$messages['loginrequired'] = "Cal el nom d'usuari";
Expand Down
1 change: 1 addition & 0 deletions lang/cn.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "使用该工具需要安装PHP-Ldap";
$messages['nophpmhash'] = "使用Samba模式需要安装PHP mhash";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "无法访问LDAP目录";
$messages['loginrequired'] = "请先登录";
Expand Down
1 change: 1 addition & 0 deletions lang/cs.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Pro použití tohoto nástroje nainstalujte PHP LDAP";
$messages['nophpmhash'] = "Pro použití režimu Samba nainstalujte PHP mhash";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Nelze se přihlásit k LDAP adresáři";
$messages['loginrequired'] = "Je vyžadováno přihlašovací jméno";
Expand Down
1 change: 1 addition & 0 deletions lang/de.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Sie benötigen die PHP LDAP Erweiterung um dieses Tool zu nutzen";
$messages['nophpmhash'] = "Sie benötigen die PHP mhash Erweiterung um den Samba Modus zu nutzen";
$messages['nokeyphrase'] = "Die Token Verschlüsselung erfordert eine zufällige Zeichenfolge in der Konfigurationsvariable 'keyphrase'";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Kein Zugriff auf den LDAP-Server möglich";
$messages['loginrequired'] = "Ihr Benutzername wird benötigt";
Expand Down
1 change: 1 addition & 0 deletions lang/ee.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
$messages['nophpldap'] = "Sul on vaja paigaldada PHP LDAP, et kasutada seda tööriista";
$messages['nophpmhash'] = "Sul on vaja paigaldada PHP mhash, et kasutada Samba režiimi";
$messages['nokeyphrase'] = "Tokeni krüpteerimine nõuab juhuslikku märgijada võtmejada seadistuses";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Ei ole võimalik saada ühendust LDAP kataloogiga";
$messages['loginrequired'] = "Sinu kasutajanimi on kohustuslik";
Expand Down
1 change: 1 addition & 0 deletions lang/el.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Απαιτείται η εγκατάσταση του πρόσθετου PHP LDAP για τη λειτουργία αυτής της εφαρμογής";
$messages['nophpmhash'] = "Απαιτείται η εγκατάσταση του πρόσθετου PHP mhash για τη χρήση Samba";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Αδυναμία πρόσβασης στην υπηρεσία καταλόγου";
$messages['loginrequired'] = "Απαιτείται η καταχώρηση του ονόματος χρήστη";
Expand Down
1 change: 1 addition & 0 deletions lang/en.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "You should install PHP LDAP to use this tool";
$messages['nophpmhash'] = "You should install PHP mhash to use Samba mode";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Cannot access LDAP directory";
$messages['loginrequired'] = "Your login is required";
Expand Down
1 change: 1 addition & 0 deletions lang/es.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Debe instalar PHP LDAP para utilizar esta herramienta";
$messages['nophpmhash'] = "Debe instalar PHP mhash para utilizar el modo Samba";
$messages['nokeyphrase'] = "El cifrado de token requiere una cadena aleatoria en la configuración de frase de clave";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "No es posible acceder al directorio LDAP";
$messages['loginrequired'] = "Su nombre de usuario es necesario";
Expand Down
1 change: 1 addition & 0 deletions lang/eu.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Webgune hau erabiltzeko PHP LDAP instalatu beharko duzu";
$messages['nophpmhash'] = "Samba erabiltzeko PHP-ren mhash moduloa instalatu behar da";
$messages['nokeyphrase'] = "Token-ak zifratzeko konfigurazioan ausazko esaldi bat idatzi behar duzu";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Ezin da LDAP direktorioa atzitu";
$messages['loginrequired'] = "Ez duzu erabiltzaile izena idatzi";
Expand Down
1 change: 1 addition & 0 deletions lang/fr.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Vous devriez installer PHP LDAP pour utiliser cet outil";
$messages['nophpmhash'] = "Vous devriez installer PHP mhash pour utiliser le mode Samba";
$messages['nokeyphrase'] = "Vous devez configurer keyphrase pour que le chiffrement fonctionne";
$messages['nocrypttokens'] = "Les jetons chiffrés sont requis pour la fonctionnalité de réinitialisation par SMS";
$messages['noreseturl'] = "La fonction de réinitialisation par mail nécessite de configurer l'URL de réinitialisation";
$messages['ldaperror'] = "Erreur d'accès à l'annuaire";
$messages['loginrequired'] = "Vous devez indiquer votre identifiant";
Expand Down
1 change: 1 addition & 0 deletions lang/hu.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "A program használatához telepíteni kell a PHP LDAP csomagot";
$messages['nophpmhash'] = "A Samba üzemmód használatához telepíteni kell a PHP mhash csomagot";
$messages['nokeyphrase'] = "A token titkosításához random stringre van szükség";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Nem érhető el az LDAP szolgáltatás";
$messages['loginrequired'] = "A felhasználónév megadása kötelező!";
Expand Down
1 change: 1 addition & 0 deletions lang/it.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Devi installare PHP LDAP per usare questo strumento";
$messages['nophpmhash'] = "Devi installare PHP mhash per usare il modo Samba";
$messages['nokeyphrase'] = "La cifratura del token richiede una stringa generata casualmente nelle impostazioni del keyphrase";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Non posso accedere alla directory LDAP";
$messages['loginrequired'] = "Nome utente obbligatorio";
Expand Down
1 change: 1 addition & 0 deletions lang/ja.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "このツールを使うにはPHP LDAPをインストールしてください";
$messages['nophpmhash'] = "Sambaモードを使うにはPHP mhashをインストールしてください";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "LDAPディレクトリーにアクセスできません";
$messages['loginrequired'] = "ログインIDを入力してください";
Expand Down
1 change: 1 addition & 0 deletions lang/nb-NO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Du burde installera PHP LDAP for å anvenda detta verktøyet";
$messages['nophpmhash'] = "Du burde installera PHP mhash for att använda Samba mode";
$messages['nokeyphrase'] = "Token kryptering krever en tilfeldig generert streng i keyphrase innstilling";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Kan ikke koble til LDAP katalogen";
$messages['loginrequired'] = "Du må angi ditt brukernavn";
Expand Down
1 change: 1 addition & 0 deletions lang/nl.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "PHP LDAP moet geinstalleerd zijn om deze tool te kunnen gebruiken";
$messages['nophpmhash'] = "PHP mhash moet geinstalleerd zijn om Samba mode te kunnen gebruiken";
$messages['nokeyphrase'] = "Token encryptie vereist een willekeurige string in de keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Kan geen toegang tot de LDAP directory verkrijgen";
$messages['loginrequired'] = "Gebruikersnaam is vereist";
Expand Down
1 change: 1 addition & 0 deletions lang/pl.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Wymagane jest zainstalowanie PHP-LDAP zanim użyjesz tego narzędzia";
$messages['nophpmhash'] = "Wymagane jest zainstalowanie PHP-mhash przed użyciem trybu Samba";
$messages['nokeyphrase'] = "Szyfrowanie Tokena wymaga losowego ciągu keyphrase w konfiguracji";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Nie można połączyć się z bazą LDAP";
$messages['loginrequired'] = "Wymagany jest Twój login";
Expand Down
1 change: 1 addition & 0 deletions lang/pt-BR.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Você deve instalar o PHP LDAP para utilizar esta ferramenta";
$messages['nophpmhash'] = "Você deve instalar o PHP mhash para utilizar o modo Samba";
$messages['nokeyphrase'] = "Criptografia do Token necessita de uma string aleatória nas configuração de keyphrase";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Não foi possível acessar o diretório LDAP";
$messages['loginrequired'] = "O seu nome de usuário é necessário";
Expand Down
1 change: 1 addition & 0 deletions lang/pt-PT.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Necessitas de instalar o PHP LDAP para utilizares esta ferramenta.";
$messages['nophpmhash'] = "Necessitas de instalar o PHP mhash para utilizares o Samba mode.";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Não foi possivel aceder à pasta LDAP.";
$messages['loginrequired'] = "O teu username é necessário.";
Expand Down
1 change: 1 addition & 0 deletions lang/rs.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Potrebno je instalirati PHP LDAP da bi ste koristili ovu alatku";
$messages['nophpmhash'] = "Potrebno je instalirati PHP mhash da bi ste koristili SAMBA mod";
$messages['nokeyphrase'] = "Enkripcija Tokena zahteva nasumičan niz karaktera u podešavanju keyphrase-a";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Ne mogu da pristupim LDAP direktorijumu";
$messages['loginrequired'] = "Potrebno je vaše korisničko ime";
Expand Down
1 change: 1 addition & 0 deletions lang/ru.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Для использования данной программы Вам необходимо установить PHP-Ldap";
$messages['nophpmhash'] = "Для использования Samba mode установите сначала PHP mhash";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Нет доступа к LDAP directory";
$messages['loginrequired'] = "Введите Ваш login";
Expand Down
1 change: 1 addition & 0 deletions lang/sk.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Mali by ste nainštalovať PHP LDAP";
$messages['nophpmhash'] = "Mali by ste nainštalovať PHP mhash pri používaní Samba režimu";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Nemožno získať prístup k adresáru LDAP";
$messages['loginrequired'] = "Zadanie prihlasovacieho mena je povinné";
Expand Down
1 change: 1 addition & 0 deletions lang/sl.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Namestiti morate PHP LDAP";
$messages['nophpmhash'] = "Za način Samba morate namestiti PHP mhash";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Dostop do LDAP ni mogoč";
$messages['loginrequired'] = "Vnesti morate uporabniško ime";
Expand Down
1 change: 1 addition & 0 deletions lang/sv.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Du borde installera PHP LDAP för att använda detta verktyg";
$messages['nophpmhash'] = "Du borde installera PHP mhash för att använda Samba mode";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Kan inte komma åt LDAPkatalogen";
$messages['loginrequired'] = "Du måste ange ditt användarnamn";
Expand Down
1 change: 1 addition & 0 deletions lang/tr.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "Bu aracı kullanabilmek için PHP LDAP yüklemelisiniz";
$messages['nophpmhash'] = "Samba modunu kullanmak için PHP mhash yüklemelisiniz";
$messages['nokeyphrase'] = "Belirteç şifrelemesi için keyphrase ayarında rastgele bir metin olması gerekir";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "LDAP dizinine ulaşılamıyor";
$messages['loginrequired'] = "Kullanıcı adınız gereklidir";
Expand Down
1 change: 1 addition & 0 deletions lang/uk.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
$messages['nophpldap'] = "Для використання цієї програми Вам потрібно встановити PHP ldap";
$messages['nophpmhash'] = "Для використання Samba режиму, спочатку встановіть PHP mhash";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "Немає доступу до LDAP директорії";
$messages['loginrequired'] = "Введіть Ваш логін";
Expand Down
1 change: 1 addition & 0 deletions lang/zh-CN.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "您需要安装 PHP LDAP 才能使用本工具";
$messages['nophpmhash'] = "您需要安装 PHP mhash 才能使用 Samba 模式";
$messages['nokeyphrase'] = "在使用凭据加密前,需要在 keyphrase 设置中填写一个随机字符串";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "不能访问 LDAP 目录服务";
$messages['loginrequired'] = "请输入您的用户名";
Expand Down
1 change: 1 addition & 0 deletions lang/zh-TW.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$messages['nophpldap'] = "您需要安裝 PHP LDAP 才能使用此工具";
$messages['nophpmhash'] = "您需要安裝 PHP mhash 才能使用 Samba 模式";
$messages['nokeyphrase'] = "Token encryption requires a random string in keyphrase setting";
$messages['nocrypttokens'] = "Crypted tokens are mandatory for reset by SMS feature";
$messages['noreseturl'] = "Reset by mail tokens feature requires configuration of reset URL";
$messages['ldaperror'] = "無法連接至 LDAP 伺服器";
$messages['loginrequired'] = "請輸入帳號";
Expand Down
2 changes: 1 addition & 1 deletion lib/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function generate_sms_token( $sms_token_length ) {
# Get message criticity
function get_criticity( $msg ) {

if ( preg_match( "/nophpldap|phpupgraderequired|nophpmhash|nokeyphrase|ldaperror|nomatch|badcredentials|passworderror|tooshort|toobig|minlower|minupper|mindigit|minspecial|forbiddenchars|sameasold|answermoderror|answernomatch|mailnomatch|tokennotsent|tokennotvalid|notcomplex|smsnonumber|smscrypttokensrequired|nophpmbstring|nophpxml|smsnotsent|sameaslogin|pwned|invalidsshkey|sshkeyerror|specialatends|forbiddenwords|forbiddenldapfields|diffminchars|badquality|tooyoung|inhistory|throttle|attributesmoderror|insufficiententropy|noreseturl/" , $msg ) ) {
if ( preg_match( "/nophpldap|phpupgraderequired|nophpmhash|nokeyphrase|ldaperror|nomatch|badcredentials|passworderror|tooshort|toobig|minlower|minupper|mindigit|minspecial|forbiddenchars|sameasold|answermoderror|answernomatch|mailnomatch|tokennotsent|tokennotvalid|notcomplex|smsnonumber|smscrypttokensrequired|nophpmbstring|nophpxml|smsnotsent|sameaslogin|pwned|invalidsshkey|sshkeyerror|specialatends|forbiddenwords|forbiddenldapfields|diffminchars|badquality|tooyoung|inhistory|throttle|attributesmoderror|insufficiententropy|noreseturl|nocrypttokens/" , $msg ) ) {
return "danger";
}

Expand Down
Loading