Skip to content

Instantly share code, notes, and snippets.

@bttmly
Created March 4, 2014 19:33
Show Gist options
  • Save bttmly/9353888 to your computer and use it in GitHub Desktop.
Save bttmly/9353888 to your computer and use it in GitHub Desktop.
# Gemfile: gem 'tok3n', :require => "tok3n/rails"
respond_to do |format|
if tok3n_verify(:private_key => 'your_private_key',
:user_key => @user_key,
:otp => 'tok3n_otp_field')
# Successful verification
else
# Failed verification
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment