the survey app predates auth. It would be really nice to have a gluon/
contrib/login_method based on it.


On Sep 22, 11:05 pm, Chris <[email protected]> wrote:
> Interesting, thanks Massimo!
>
> I took a look at the survey link. It send a link that lets me access
> part of the site, but 1) I'm not sure if it's actually logging in the
> user (i.e. changing auth.user) and 2) I don't have access to the code
> for it, so I don't know how to imitate its technique.
>
> I looked at the CAS stuff but I'm not sure I'm making the right use of
> it. I think session.token is the key, but this line:
>
> id,email,name=session.token ### specific for web2py CAS service
>
> led me to think that login would be different for my non-CAS system. I
> hooked up a debugger so I could see what happens to session.token for
> a logged in user and got None. So apparently my regular login isn't
> even using session.token, so I can't log a user in by creating a
> controller action that sets session.token.
>
> I'm gonna keep hammering away at this, let me know if you have more
> ideas!
>
> Thanks!
> Chris
>
> On Sep 22, 10:01 pm, mdipierro <[email protected]> wrote:
>
> >http://web2py.com/surveyhttp://web2py.com/cas
>
> > On Sep 22, 2:45 pm, Chris <[email protected]> wrote:
>
> > > Hi all,
>
> > > I'd like to create a system where I can email an individual user a
> > > link that, when they click on it, automatically logs them in and takes
> > > them to the requested page. I didn't see a method of logging in a user
> > > in this manner; can anyone offer any suggestions?
>
> > > Thanks,
> > > Chris
>
>

Reply via email to