Recommend this page to a friend! |
Classes of Faris AL-Otabi | Uploady PHP Upload File to MySQL | uploady/vendor/robthree/twofactorauth/docs/getting-started.md | Download |
|
Downloadlayout: post title: Getting Started1. InstallationThe best way of making use of this project is by installing it with composer.
or if you have composer installed globally
2. Create an instanceNow you can create an instance for use with your code
Note: if you are not using a framework that uses composer, you should include the composer loader yourself 3. Shared secretsWhen your user is setting up two-factor, or multi-factor, authentication in your project, you can create a secret from the instance.
Once you have a secret, it can be communicated to the user however you wish.
Note: until you have verified the user is able to use the secret properly, you should store the secret as part of the current session and not save the secret against your user record. 4. VerifyingHaving provided the user with the secret, the best practice is to verify their authenticator app can create the appropriate code.
If You can now save the |