2amigos / 2fa-library Goto Github PK
View Code? Open in Web Editor NEW2 Factor Authentication (2FA) library
Home Page: https://2amigos.us
License: Other
2 Factor Authentication (2FA) library
Home Page: https://2amigos.us
License: Other
composer file should have php-gd as a requirement
Hello,
I'm getting the following error when calling
$manager->verify($code, $secret);
The variable $secret does contain the correct secret and isn't empty.
I'm generating the secret using
$manager->generateSecretKey();
Some examples of secrets which are throwing the error:
TFU7CE5TXHMMPHQ2
3UAJ4P5MDQE2GLD3
The protected function validateOneTimePassword in the Manager class only returns a boolean value, which results in the verify function also only returning a boolean.
However, it should return $startTime if $previousTime was passed as described in the documentation.
I think this must be a mistake. Qr library is only required in dev environment. This brokes functionality when deployed to production environment.
Line 42 in d74e8cd
Problem 1
- 2amigos/2fa-library 2.0.0 requires paragonie/random_compat ^1.4|^2.0 -> found paragonie/random_compat[v1.4.0, ..., v1.x-dev, v2.0.0, ..., v2.0.21] but the package is fixed to v9.99.100 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
There is already 9.99.100 but your composer says 9.99.99
. I believe, you should use ^9.99.99
?
Why is the versioning 9.99 by the way? There are 1.x and 2.x trees, what is the 9.99 tree?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.