For those who care, this was super-simple to implement once I took the time to read the manual. I implemented using RingCentral as a transport to send sms messages.
-Jim On Tuesday, July 19, 2022 at 3:51:55 PM UTC-5 Jim S wrote: > Read the docs Jim... > > > > http://web2py.com/books/default/chapter/29/09/access-control#Two-step-verification > > On Tuesday, July 19, 2022 at 3:18:33 PM UTC-5 Jim S wrote: > >> Hi >> >> I'm looking to modify my web2py login to do a poor man's 2 factor auth. >> >> I would like my login to proceed like this: >> >> 1. present login page >> 2. user fills out username/password and submits >> 3. if username/password match proceed to step 4 - if not, re-display >> login page >> 4. send sms message with random 6 digit code to the user cell phone >> 5. pop up screen for user to enter the 6 digit code >> 6. If the code matches the generated code then set the user as logged in >> - if it doesn't match, then the user is not logged in >> >> Has anyone done anything like this before? I'm trying to figure out how >> to pop up the additional screen and take input before marking user as >> logged in. >> >> -Jim >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/52fc5284-9be2-4ead-af7a-b9a5c56d6601n%40googlegroups.com.