Works like a charm ! Thanks a lot.
Note to self: I definitely have to work my search fu :) On Sunday, November 11, 2012 9:36:02 PM UTC+1, Simon Carr wrote: > > Hi, > > Put this code in your model > > if request.controller == 'default' and request.function == 'user': > request.requires_https() > > I found it on the net and it is not tested. > > On Sunday, 11 November 2012 20:16:04 UTC, Calycé wrote: >> >> Hi all, >> >> Probably a silly question, but is there an easy way to force https for >> specific controller ? >> I saw in db.py that by ucommenting the line "request.requires_https()" I >> can force redirection from http to https, but can I do that only for a >> specific controller ? >> >> Many thanks. >> > --

