@auth.requires_membership('admin')
def register():
    form = SQLFORM(db.auth_user)
if form.validate():
    admin_user = auth.user
auth.get_or_create_user(form.vars)
auth.user = admin_user
return dict(form=form)
Индивидуальная регистрация web2py