is it now data or still database?
> http://..../[app]/default/data/tables
> http://..../[app]/default/data/select/[app]_event
> http://..../[app]/default/data/create/[app]_event
> http://..../[app]/default/data/read/[app]_event/1
> http://..../[app]/default/data/update/[app]_event/1
> http://..../[app]/default/data/delete/[app]_event/1
>
<snip>
> auth.settings.captcha=RECAPTCHA
> (request,public_key='RECAPTCHA_PUBLIC_KEY',private_key='RECAPTCHA_PRIVATE_KEY')
>
> so that registration will use recaptcha
>
> then add
I put this in and restarted web2py (continued below)
> crud.auth=auth
>
> so that crud will enforce role based access control....
> now you lost the permission to access http://.../database/....
>
> now give yourself back permission *only* to select record in table
> [app]_user
but did not put these in and I can still get to database tables (do
these go in db.py just as as you have them, except [app], of course??
also above, /data/ or /database/??
> group_id=auth.add_group(role='Manager')
> auth.add_membership(group_id,auth.user.id)
> auth.add_permission(group_id,'select','[app]_user')
>
> or to delete users
>
> auth.add_permission(group_id,'delete','[app]_user')
>
<snip>
-wj
>
> but did not put these in and I can still get to database tables (do
> these go in db.py just as as you have them, except [app], of course??
>
>> group_id=auth.add_group(role='Manager')
>> auth.add_membership(group_id,auth.user.id)
>> auth.add_permission(group_id,'select','[app]_user')
never mind on this part. I went to a brower that i was not logged in
to the site and it gives errors like it should.
-wes
Sorry again, i went from 127.0.0.1 to a real ip address in trying to
test the email part (still haven't received an email)
Anyway I can view the database with crud.auth=auth in db.py.
(shouldn't be able to right?)
-wj
tried retrieve password and got:
gluon/utils.py", line 571, in retrieve_password
self.settings.mailer.send(to=form.vars.email,
AttributeError: 'NoneType' object has no attribute 'send'
-wj