Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Anonymous Monk
on Dec 14, 2011 at 18:46 UTC ( #943603=note: print w/replies, xml ) Need Help??


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

very nice tutorial!

Please fix this line:

 Inside the WebApp directory, create a 'template' subdirectory, and a 'libs' subdirectory. Next create a 'MyLib' directory inside of 'libs'.

It should be "create a 'templates' subdir". Easy typo but just took me half an hour to find the mistake.

Thanks!
  • Comment on Re: RFC: Proposed tutorial - simple login script using CGI::Application
  • Download Code

Replies are listed 'Best First'.
Re^2: RFC: Proposed tutorial - simple login script using CGI::Application
by scorpio17 (Canon) on Feb 15, 2012 at 16:52 UTC
    Sorry about that - I've fixed it. Thanks for the feedback.
      Hi, could you please suggest me, how to redirect after successful login however i dont to be change the http://localhost/cgi-bin/WebApp/simple.pl in the browser. Thanks,

        The CGI::Application::Plugin::Authentication config method provides the parameters POST_LOGIN_RUNMODE and POST_LOGIN_URL for this purpose (see the documentation). I actually make use of POST_LOGIN_RUNMODE in this demo to route control through my 'okay' runmode, whose main purpose is to transition from https back to http. Feel free to modify that run mode as needed for whatever you need to do.

        You don't need to redirect to a new script. You could redirect to http://localhost/cgi-bin/WebApp/simple.pl?loginSuccess=1 for example.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://943603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2021-04-19 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?