in reply to RFC: Proposed tutorial - simple login script using CGI::Application

++ scorpio17.

It just so happens I'm just starting a new web application as a first time CG::Application user! I have downloaded and run this. An excellent and much needed starting point CGI::Application and friends.

I didn't have my desktop Apache (1.3) configured for https, so I commented out the https redirects in Login.pm lines 187-189 and 207-209. I'm also new to Apache 1.3 SSL setup and will get back to it later.

It my be useful to add a bit more on on the required https set-up. Also get the user to test it early, say try https access to the first 'hello world' script.

Well done!

  • Comment on Re: RFC: Proposed tutorial - simple login script using CGI::Application

Replies are listed 'Best First'.
Re^2: RFC: Proposed tutorial - simple login script using CGI::Application
by scorpio17 (Canon) on Jun 21, 2007 at 13:38 UTC
    snoopy:

    If you comment out lines 156-159:

    # LOGOUT_RUNMODE => 'logout', # LOGIN_RUNMODE => 'login', # POST_LOGIN_RUNMODE => 'okay', # RENDER_LOGIN => \&my_login_form,

    Then the Authentication plugin will use its default login form, which does NOT make use of SSL. The main reason I needed to create my own was to enable SSL functionality.

    As for setting up apache+ssl, you can try looking here:

    http://ubuntuforums.org/showthread.php?t=51753

    It's geared towards ubuntu linux, but should apply to any Debian based linux distibution with minor changes.

    Good luck!