Differences From Artifact [787abfba04]:

To Artifact [ce60202b4f]:


501
502
503
504
505
506
507
508
509
510
511
512
513
514
515

        $dir->close();
        return true;
    }

    static public function suggestPassword()
    {
        return \KD2\Passphrase_FR::generate();
    }

    static public function checkIBAN($iban)
    {
        $iban = substr($iban, 4) . substr($iban, 0, 4);
        $iban = str_replace(range('A', 'Z'), range(10, 35), $iban);
        return (bcmod($iban, 97) == 1);







|







501
502
503
504
505
506
507
508
509
510
511
512
513
514
515

        $dir->close();
        return true;
    }

    static public function suggestPassword()
    {
        return \KD2\Security::getRandomPassphrase(ROOT . '/include/data/dictionary.fr');
    }

    static public function checkIBAN($iban)
    {
        $iban = substr($iban, 4) . substr($iban, 0, 4);
        $iban = str_replace(range('A', 'Z'), range(10, 35), $iban);
        return (bcmod($iban, 97) == 1);