Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by scorpio17 (Abbot)
on Feb 15, 2012 at 16:52 UTC ( #953999=note: print w/replies, xml ) Need Help??


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

Sorry about that - I've fixed it. Thanks for the feedback.
  • Comment on Re^2: RFC: Proposed tutorial - simple login script using CGI::Application

Replies are listed 'Best First'.
Re^3: RFC: Proposed tutorial - simple login script using CGI::Application
by Anonymous Monk on Jan 21, 2016 at 13:02 UTC
    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.

        Thanks , I have created script with CGI Perl and Iím trying to add login page this tutorial and its working good . However when Iím trying to redirect page (calling my script with POST_LOGIN_URL) its complete change the new URL. im not sure how to add same URL with my script. Couple you please guide some example Thanks in advance!

      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.

        Thanks , I have created script with CGI Perl and Iím trying to add login page this tutorial and its working good . However when Iím trying to redirect page (calling my script with POST_LOGIN_URL) its complete change the new URL. im not sure how to add same URL with my script. Couple you please guide some example Thanks in advance!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://953999]
help
Chatterbox?
[Corion]: "flag problem" to me sounds like "contains UTF-8 bytes but was never properly decoded to an UTF-8 string"
[LanX]: not my code ...
[choroba]: yeah, sounds like one of the strings is not flagged as UTF-8
[choroba]: which usually means its input wasn't handled correctly
[Corion]: choroba: Yeah, I think that would be the good solution
[LanX]: I suspect the first string which comes from the DB ...
[LanX]: ... but this part is already in production for a year now
[Corion]: LanX: The "good" approach here would be to use the appropriate DBI parameters to make the driver decode strings properly. But that will have a ripple-on effect of messing up all the places where manual decoding happens ;)
[LanX]: which means albeit being broken UTF8 it'll be handled correctly
[LanX]: and the problem only occurs since we changed the emails to base64

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-01-16 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (150 votes). Check out past polls.