Comments (6)
Hey @webhat - when I've had to generate new secret token values in the past, I would firstly disable your requirement for the token, then update the value. The current gem is actually 0.3.13, although, I think the following would still work for your version.
Open up rails console
u = User.find(id)
u.gauth_enabled = false
u.save
Double check you can login without the token.. then get back in the console.
u = User.find(id)
u.send(:assign_auth_secret)
u.save
Log back into the app, visit the /user/displayqr page, and they should have a new token
..
Let me know how that goes?
from devise_google_authenticator.
This works for me, and obviously this is not how a user would be able to update their token, an often overlooked use case is where a user changes phones and needs to re-activate their GA on this new device.
from devise_google_authenticator.
Agreed.
I have a separate issue to allow users to cycle tokens on the displayqr
Page.
I'll try and get to that next.
On 28 Mar 2014 23:34, "Daniel W. Crompton" [email protected] wrote:
This works for me, and obviously this is not how a user would be able to
update their token, an often overlooked use case is where a user changes
phones and needs to re-activate their GA on this new device.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-38932517
.
from devise_google_authenticator.
0.3.14 now has token refresh capability. Let me know if that's what you're after @webhat?
From the displayqr page, there's a button to update the secret token.
from devise_google_authenticator.
👍 Thanks, exactly what I want. I'll try it out and report back.
from devise_google_authenticator.
I think this is all okay now - closing out.
from devise_google_authenticator.
Related Issues (20)
- Angular with Rails and Google Authenticator
- Rethink name HOT 3
- How do I get backup codes? HOT 1
- Prevent from displaying QR code again HOT 1
- mongoid and cancancan: uninitialized constant ActiveRecord::Base (NameError) HOT 1
- Double sign in needed after I enter token
- Custom Views
- Devise 4 support HOT 2
- Locales file missing some entries
- Devise password reset via 'recoverable' bypasses google auth HOT 1
- the name of variable in view differ from migrate file
- Alternative for this project? HOT 1
- Avoid patching Devise controllers
- Configure a CI server
- Not validating the guth token HOT 1
- undefined method `to_prepare'
- devise_google_authenticator not redirect to checkga page to otp varification HOT 1
- Is this project abandoned? HOT 5
- Not compatible with rails 5 HOT 1
- Who wants to create a community group to maintain this gem?
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 devise_google_authenticator.