I'd create a custom form with new user fields, decorate it with
@auth.requires_membership("<admin group>"), and on validation, use the
auth.get_or_create_user() function passing the collected form data. I
have not tested it, and maybe there is a simpler way. I think that
there would be good that web2py had a feature as login_bare for this
case, "register_bare" or alike.

On Dec 30, 6:57 am, ganesh waghmare <ganeshwaghmar...@gmail.com>
wrote:
> Hi,
>
> I am new to web2py and I need help... Thanks in advance for your
> help.!!
>
> I want to make application which is having one admin(super user)
> account.. I want to restrict 'only admin can register user'. So that
> once Admin logins to app, he will see different menus like 'Home',
> 'Setting', and 'Register User'.. I am done with other options but I am
> getting problems in Register...
>
> In my application there is 'Register' link <http://127.0.0.1:8000/
> filemanager2/default/user/register>... But when I click on it, it get
> redirected to profiles page... it's becoz admin user is already logged
> in and therefor after clicking on register link it shows admin
> account's profile...
>
> Please Help... Thank You..!

Reply via email to