> Well, in my case, the delay was caused by sending email, so it is >>> definitely not "milliseconds of each other". It takes some 2 or 3 seconds, >>> maybe even longer. And during this period, it is not that another user >>> would try to register with same username/email, it is somehow the same user >>> request would (seemingly?) be resent (by the user's app or by my reverse >>> proxy apache or by a wsgi middleware or whatever, which I don't know yet). >>> >> >> Got it, but that sounds like a bug to be fixed. It shouldn't be possible >> to re-submit the standard registration form twice because the _formkey >> token prevents duplicate submissions. Are you using a different method for >> submitting registration data? >> > > It is because I am providing a RESTFUL api for the app to call. That is > why I (have to?) bypass all the good things in the default form-based > infrastructure such as double submit prevention. Sad but true. >
You could still implement your own functionality to prevent double submission, such as issuing a one-time use token that gets submitted with the registration. Anthony -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

