Comments (11)
@ampodobas thank you for the detailed error message. Can you show me the config file ?
from two-factor-authentication.
-
I followed the instructions on this page precisely: http://imrealashu.in/code/laravel/two-factor-authentication-in-laravel/.
-
When I did a composer require for your project, the version entry was:
"thecodework/two-factor-authentication": "^0.1.3",
-
There also seems to be an issue with the ajax() request conditional. It worked after I amended the controller (in vendor for this project) from
if ($request - ajax()) {
toif ($request ->ajax()) {
in TwoFactorAuthenticationController.php.
from two-factor-authentication.
I'd suggest use version 0.1.2 for now, I'm working on #13 and it is currently in WIP. I'll solve it at the earliest.
from two-factor-authentication.
@imrealashu: many thanks. I've tried a number of other two-factor auth packages for an InfoSec monitoring tool I'm developing using Laravel and none intercepted the authentication request upon a successful login like your's did. I look forward to using it, and I appreciate the quick follow-up.
from two-factor-authentication.
@ampodobas sure, I'll resolve those issues and put an stable update soon. Meanwhile if you spot any error or bug using version 0.1.2
do create an issue, I'll try to resolve it asap.
from two-factor-authentication.
@ampodobas I've fixed the issue and will put an update soon. The actual problem was the migration which further failing generating valid barcode. Thank you for trying it out and creating the issue. Closing it for now, will notify you once I put an update.
from two-factor-authentication.
@ampodobas I've released an update 0.1.4
, it tested and can be added in your project. However 0.1.5
version is releasing anytime soon today which adds a new feature to specify your User model and table gives more flexibility to projects where user have multiple authentication.
I look forward to your review and feedback. Thank you.
from two-factor-authentication.
(1) The same issue about the invalid barcodes is persisting:
(2) The multiple equals signs (which I've never seen in any secret key before) are still being appended to the typically "normal," alpha-numeric secret key. I think solving how the secret key is generated and inserted should be dealt with first. If you want me to help test anything, I would benefit from it because I want to use this package as quickly as possible in my project.
from two-factor-authentication.
@ampodobas
I don't think that's an issue and I'll explain it to you asap. meanwhile Did you try removing the package completely and reinstalling it again ? and make sure you publish the config file.
also, try to change the 'number_of_digits' => 30,
8 to 30 as shown to get rid of "padded ===
equal to symbols" if you feel that's causing the error. I'll try to explain that reason before closing the issue.
from two-factor-authentication.
I've just checked this using Authy, and it turned out to be not working using that. However I'm not facing any issue usng Google Authenticator and worked perfectly fine. I'll work on it and update it asap.
Also @ampodobas do send me your 2fa-config.php
file and specify which client app you're using, GA or Authy? so that It'll help me debug what exactly is going wrong.
from two-factor-authentication.
0.1.6
is tested and working using Google Authenticator as well as Authy with default configuration.
from two-factor-authentication.
Related Issues (20)
- Use not too generic name for db columns
- Incompatible return type
- Do not regenerate barcode image on each refresh of the page.
- FatalErrorException in TwoFactorAuthenticationServiceProvider.php line 43 HOT 14
- Token is not valid? HOT 22
- upgrade to laravel 5.5 bug - "Class 'Base32\Base32' not found" HOT 4
- Extends Controller class from default new project namespace HOT 4
- Barcode not valid in iOS HOT 2
- two_factor_provisioned_uri field not found HOT 4
- Question: How to know if a specific user has two factor authentication enabled? HOT 3
- Suggestion: submit issuer and user email with the barcode
- Documentation : Missing --tag="views" in the publish views command HOT 1
- Rename views, migration and config to 2fa-* HOT 1
- Support for custom qr code generator
- Inconsistencies in class naming (2FA vs TwoFactorAuthentication)
- Support for custom columns
- Use config url in view not hard-coded one
- Can we send token via SMS?
- When is planned support for PHP 8 and laravel 9? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from two-factor-authentication.