There are several conditions under which user's credentials might be valid, but the login would need to be refused anyway. The subroutine with the Apache::exit is used to handle these cases. Prior to exiting, the subroutine sets up a redirect back to the login page (with an error displayed to the user) that ends up as the resulting page after the exit. If a return is used instead of an exit, the login proceeds anyway, which we don't want.

Obviously, the exit is handling some things that need to be unset to prevent the login, but I don't wish to use this forum to figure out how to deal with those things since the Apache::exit already achieves them. If, however, there is a way to call Apache::exit (or something else that would likely have the same effect on the login request) as described previously, but without logging the error in the logs, that would be the easiest fix. If there isn't, then I'll go some other route. Thanks....


In reply to Re^4: Apache::exit question by memnoch
in thread Apache::exit question by memnoch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.