Coder Social home page Coder Social logo

Comments (6)

xntrik avatar xntrik commented on June 24, 2024

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.

webhat avatar webhat commented on June 24, 2024

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.

xntrik avatar xntrik commented on June 24, 2024

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.

xntrik avatar xntrik commented on June 24, 2024

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.

webhat avatar webhat commented on June 24, 2024

👍 Thanks, exactly what I want. I'll try it out and report back.

from devise_google_authenticator.

xntrik avatar xntrik commented on June 24, 2024

I think this is all okay now - closing out.

from devise_google_authenticator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.