web2py itself have an impersonate function, not sure is it suitable in your 
case or not.
e.g.
# user
db.auth_user.bulk_insert([{"first_name" : "Admin", "last_name" : "Admin", 
                           "email" : "[email protected]", "username" : "admin", 
                           "password" : 
db.auth_user.password.validate("password")[0] }, 
                          {"first_name" : "User", "last_name" : "User", 
                           "email" : "[email protected]", "username" : "user", 
                           "password" : 
db.auth_user.password.validate("password")[0] } ] )

# permission (admin impersonate user)
auth.add_permission(1, "impersonate", "auth_user", 2)

after that please access, default/user/impersonate

best regards,
stifan

-- 
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.

Reply via email to