heapsource / active_model_otp

Adds methods to set and authenticate against one time passwords (Two-Factor Authentication). Inspired in AM::SecurePassword
MIT License
769 stars 81 forks source link

Fix a bug with provisioning_uri #22

Closed ghost closed 9 years ago

ghost commented 9 years ago

If there is no email it would crash due to nil.

robertomiranda commented 9 years ago

@ResultsMayVary could you take a look on travis? the tests are failing. Also could you reproduce the bug writing a test case?

ghost commented 9 years ago

@robertomiranda Sorry for the delay. These changes should remedy all your issues. Test cases have been added and I improved some checks in a couple spots. Let me know!