/PHP-Authentication-OTP

Un projet d'authentification via une application générant des OTP

Primary LanguagePHP

PHP authentification via One Time Password (OTP) 👋

Image

⚠️⚠️⚠️⚠️ ATTENTION Ceci est valable pour une version Php < 8 ⚠️⚠️⚠️⚠️

Sommaire

[toc]

Sources et dépendances

Application FreeOTP sur Android et iTruc

  • Application FreeOTP

Marche aussi avec Google Authenticator

Librairie de génération du OTP (en version 10.0.3 si on est en PHP < 8)

Installation de la dépendance

Installation de la dépendance via composer:

composer require spomky-labs/otphp:10.0.3

Attention, le module php7.4-mbstring doit être installé! Si vous ne l'avez pas: sudo apt install php7.4-mbstring

Utilisation de ce dépôt

  • Cloner le dépôt
git clone git@github.com:LiliwoL/PHP-Authentication-OTP.git
cd PHP-Authentication-OTP
  • Installer les dépendances (composer doit être installé!)
composer install