You could include a checkbox or button that sends an Ajax request to store the choice in the session and then look for it there upon login. Or just let the user set the option in their profile (perhaps defaulting to being enabled).
Anthony On Friday, September 28, 2012 12:51:37 AM UTC-4, Dave wrote: > > Hm. > > In the case of RPX, the "login form" is actually an iframe. It doesn't > get posted to the web2py framework except through a callback URL. > > My service is similar to janrain, but i need to "link" multiple OAuth > services to a singular user account. In my case a button will link to the > authorize URL for the apropos service. > > I was originally thinking along the same lines Anthony, but since there > really isn't a form getting processed I am having some trouble thinking it > through. Perhaps I could create a form with the multiple account login > services and redirect instead of linking directly with the button. > > > On Friday, September 28, 2012 12:38:20 AM UTC-4, Anthony wrote: >> >> I think this is all you have to do to enable "remember me" for a >> particular user: >> >> session.auth.expiration = auth.settings.long_expiration >> session.auth.remember = True >> >> So, if you add a "remember me" checkbox to the login form, just check >> whether it is selected, and if so, run the above two lines. >> >> Anthony >> >> On Friday, September 28, 2012 12:10:10 AM UTC-4, Dave wrote: >>> >>> Is there an easy way to allow "remember me" functionality with anything >>> but the standard Auth()? I am nearly finished writing my own open >>> authentication class for a project I am working on. I dont see this >>> functionality in the baked Janrain / RPX class either though. >>> >>> Im trying to figure out if there is an easy way to do this or if I need >>> to duplicate some of the Auth() 'remember me' functionality in my own class? >>> >>> Thanks >>> >> --

