[Plugin] kzOtPHP pour double authentification (2FA, TOTP, QR-Code)

2»

Réponses

  • Superbe Plugin et qui tourne bien avec la dernière mouture en cours de dev alias 5.9-RC3
    avec un petite retouche du code de kzOtPHP.php pour enlever les warnings : ligne 293

        const ADMIN_AUTH_PREPEND_CODE = <<< 'ADMIN_AUTH_PREPEND_CODE'
    <?php
    if(defined('MAX_LOGIN_COUNT')){# Protection anti brute force pluxml5.9RC+
        $maxlogin['counter'] = MAX_LOGIN_COUNT; # = 5; # nombre de tentative de connexion autorisé dans la limite de temps autorisé
        $maxlogin['timer'] = MAX_LOGIN_TIME; # = 3 * 60; # temps d'attente limite si nombre de tentative de connexion atteint (en minutes)
    }
    if(
        empty($_SESSION['maxtry']['counter']) or
        empty($_SESSION['maxtry']['timer']) or
        intval($_SESSION['maxtry']['counter']) < $maxlogin['counter'] or
        time() <= $_SESSION['maxtry']['timer'] + $maxlogin['timer']
    ) {
        $plxAdmin->plxPlugins->aPlugins['##CLASS##']->check($plxAdmin, $maxlogin['counter']);
    }
    ?>
    ADMIN_AUTH_PREPEND_CODE;
    

    Testé et approuvé avec un greffon 2FA TOTP pour vos navigateurs Authenticator

    Notre temps est la seule monnaie vraie ;)

    Site, Dépôt, framagit, MyShop, Factux

    #mozinor président

  • RubénRubén Member

    Bonjour,
    merci pour le plug-in
    J'ai créé le fichier de langue pour l'occitan, oc.php :
    <?php $LANG = array( 'OTP_ENABLE' => 'Activar la dobla autentificacion', 'OTP_PIN' => 'Còdi PIN', 'OTP_FAILURE' => 'Còdi PIN incorrècte', 'OTP_SCAN' => 'Numerizatz lo còdi QR', 'DIGEST' => 'Emprenta', 'DIGITS' => 'Nombre de chifras', 'QRCODE_PROVIDER' => 'Generator local pel còdi QR', 'COPIED' => 'Uri copiat al quichapapièr', 'MISSING_ICONV_LIBRARY' => 'La bibliotèca Iconv per PHP es pas installada', 'MISSING_CTYPE_LIBRARY' => 'La bibliotèca Ctype per PHP es pas installada', 'ADMIN_LANG_FAILS' => 'Lo còdi de la lenga d\'administracion del site es %s. Mas vòstre navigador accèpta pas aquesta lenga' ); ?>

  • bazooka07bazooka07 PluXml Lead Developer, Moderator

    Bonsoir,

    Version 1.0.0 du plugin kzOtPHP disponible avec le lien suivant :
    https://kazimentou.fr/repo/index.php?plugin=kzOtPHP&download
    Cette version nécessite au minimum PHP 7.1 et fonctionne aussi avec PHP 8.3.6 ( Ubuntu 22.04 LTS )
    Testé avec PluXml-5.8.12 et PluXml-5.9.0-RC7
    Utilisé avec FreeOTP sur smartphone Android.

Connectez-vous ou Inscrivez-vous pour répondre.