Closed jakerella closed 8 years ago
ping @raymondfeng (and anyone else) for review...
/cc @superkhau @ritch @bajtos
@jakarella is this pull request still relevant?
@bajtos @jakerella Is not with IBM anymore, going to close due to maintenance burden.
I am submitting this PR for an initial look at how I've implemented two-factor auth in this example project. The basic idea is to have the user submit their email/password, verify those and send them a code (sending to mobile not implemented yet), then have them enter the code for a second verification before login. Note that this also should disable the base
User.login()
method, but I'm not sure if I've accurately done so.To login:
slc run
and go to http://localhost:3000As I said, this is NOT READY TO MERGE, but I wanted to get a look at it as I will be writing up a blog post on enhanced authentication mechanisms and this is my POC for Loopback.
At some point we can try to flesh this feature out some more and integrate it with the actual example.