grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
AuthenticatesWithTwoFactor#prompt_for_two_factor
Store the user's ID in the session for later retrieval and render the two factor code prompt The user must have been authenticated with a valid login and password before calling this method! user - User record Returns nil
Edit
git clone [email protected]:intridea/grape.git
cd grape
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-AuthenticatesWithTwoFactor-prompt_for_two_factor-for-pr
# Commit to gitgit add git commit -m "better docs for AuthenticatesWithTwoFactor#prompt_for_two_factor"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-AuthenticatesWithTwoFactor-prompt_for_two_factor-for-pr
hub pull-request
# Celebrate!