[web2py] Re: how to implement two different login processes?

2011-06-21 Thread Carl
I've found a simple solution... in db.py; change auth=Auth(db) to auth=Auth(db, controller=request.controller) with this small addition, auth will be initialised by whatever controller the user used to access the website. On Jun 21, 11:10 am, Carl Roach wrote: > thanks Bruno. > My UI requiremen

Re: [web2py] Re: how to implement two different login processes?

2011-06-21 Thread Carl Roach
thanks Bruno. My UI requirements are not to give a choice to visiting users so I specifically require the options on different pages. One page won't be indexed by search engines and will be by-invitation only. I'm using the LinkedIn API to access user data from LinkedIn's servers so JanRain isn't

Re: [web2py] Re: how to implement two different login processes?

2011-06-21 Thread Bruno Rocha
if you are using RPX(janrain) you can have both methods at the same login page: http://web2pyslices.com/main/slices/take_slice/124 -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Tue, Jun 21, 2011 at 6:36 AM, Carl wrote: > after some digging I've found that creating Auth(db) is

[web2py] Re: how to implement two different login processes?

2011-06-21 Thread Carl
after some digging I've found that creating Auth(db) is where the controller can be set (and is, of course, "default" by default :) I'm calling auth=Auth(db) in my db.py file Am I heading in the right direction to change the call to Auth() depending upon if the user is logging in via /init/defaul