Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robertomiranda
Created July 11, 2013 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertomiranda/cb8e218378bb9a95077e to your computer and use it in GitHub Desktop.
Save robertomiranda/cb8e218378bb9a95077e to your computer and use it in GitHub Desktop.
# Use you user's emails for generate the provision_url
user.provision_uri # => 'otpauth://totp/hello@heapsource.com?secret=2z6hxkdwi3uvrnpn'
# Use a custom fied for generate the provision_url
user.provision_uri("hello") # => 'otpauth://totp/hello?secret=2z6hxkdwi3uvrnpn'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment