[web2py] Re: How Auth works

2012-03-02 Thread Julio F. Schwarzbeck
If you are ok digging through code, in mostly all of my apps I use a CustomAuthntication.py module that is basically a class that mimics web2py's but it is very thin compared to the stock's, I use it this way not because 'mine is better' but because I wanted to control my registration and

[web2py] Re: How Auth works

2012-02-23 Thread Anthony
The user() function is called with an additional argument in the URL (e.g., /user/login, /user/register, etc.). This extra argument is accessible via request.args[0]. Now, the Auth class has a __call__ method, so the auth object is callable. When you call it via auth(), the __call__ method

[web2py] Re: How Auth works

2012-02-23 Thread davidkw
Thanks. I'm also wondering where the exposed URL's are located (/user/ login, /user/register, etc.). Can I customize these views? On Feb 23, 9:34 pm, Anthony abasta...@gmail.com wrote: The user() function is called with an additional argument in the URL (e.g., /user/login, /user/register,

[web2py] Re: How Auth works

2012-02-23 Thread Anthony
On Thursday, February 23, 2012 10:00:37 PM UTC-5, davidkw wrote: Thanks. I'm also wondering where the exposed URL's are located (/user/ login, /user/register, etc.). Can I customize these views? The welcome app includes a /default/user.html view, which you can edit. You can also create

[web2py] Re: How Auth works

2012-02-23 Thread davidkw
Hmm, I'm still having trouble creating separate actions and views for auth. The ones I create don't seem to override the default ones. Is there any way I can expose auth as a controller? And rewrite the methods in there? Thanks. On Feb 23, 10:08 pm, Anthony abasta...@gmail.com wrote: On

[web2py] Re: How Auth works

2012-02-23 Thread pbreit
Apparently it's sort of possible but I don't think for the feint of heart: https://groups.google.com/forum/#!searchin/web2py/override$20auth/web2py/dBRbPxRw8uQ/DLgJs-PgwAQJ It is possible to manipulate from things in the user() function. For example, mine looks like this: def user(): if not

[web2py] Re: How Auth works

2012-02-23 Thread Anthony
On Thursday, February 23, 2012 11:57:49 PM UTC-5, davidkw wrote: Hmm, I'm still having trouble creating separate actions and views for auth. The ones I create don't seem to override the default ones. Is there any way I can expose auth as a controller? And rewrite the methods in there?

[web2py] Re: How Auth works

2012-02-23 Thread davidkw
Thanks, I wasn't trying to do anything specific. I'm just going through the tutorial and trying to understand how stuff works. Thanks for the link though. I hadn't found the settings info before, and it's very helpful. On Feb 24, 12:19 am, Anthony abasta...@gmail.com wrote: On Thursday,