Another info: Unlike registrations made by /user/register, the red and blue registrations are added to the DB with the registration_key field filled.
On Monday, May 21, 2012 9:42:32 PM UTC-3, csantos wrote: > > 1) In http://web2py.com/books/default/chapter/29/9, under Authentication, > it is said (regarding the user actions): >> >> By default they are all exposed, but it is possible to restrict access to >> only some of these actions > > Question: How? There are no explanations or examples on what's the best > way to do it (from what I know, I'd have to manually check the > request.args, but is there a better approach to this?) > > 2) I'd like to have two different register pages. In one of them, the user > is automatically added to the "Blue" group. On the other, he is > automatically added to the "Red" group. This is how I did it: > (a) Created the redregister() and blueregister() actions. > (b) if auth.register().process().accepted, then I auth.add_membership() to > the form.vars.id > The problem is: After registering a user, when I try to login, I receive a > "Registration needs verification" message, but I haven't enabled the > verification feature at all. Any clues? >

