You can use Catalyst::Plugin::RequireSSL to force https.

Although I think https should be used by your method if that's what the user access the app with.


Christiaan



Octavian Rasnita schreef:
Hi,
In a catalyst action accessed using https I do: if ($c->authenticate({username => $username, password => $password, active => 1})) {
  $c->res->redirect($c->uri_for_action("/index"));
}
It redirects to / URI of the site, but using http, not https as in the request for the current page. Isn't $c->uri_for_action() able to see that the current URI uses https and continue to use it or this revert to http is intentional? Thanks. --
Octavian


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4973 (20100325) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
------------------------------------------------------------------------

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to