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. > --