[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webmin-devel
Subject:    [webmin-devel] Session_login.cgi Errors
From:       "Michael Wray" <mwray () aimconnect ! com>
Date:       2004-12-15 18:07:53
Message-ID: 000201c4e2d0$ff981b50$5c01a8c0 () crm ! s4f ! com
[Download RAW message or body]

I am not getting session_login errors, ie, if the wrong password was
entered...I'm sure part of it is because I've modified the starting code to
look like this, which allows the login form to become the top window, and
with other mods to my theme, the frames come back...is there a way to be
sure the login-failed info get's passed on?


$sec = uc($ENV{'HTTPS'}) eq 'ON' ? "; secure" : "";
&get_miniserv_config(\%miniserv);
print "Set-Cookie: banner=0; path=/$sec\r\n" if ($gconfig{'loginbanner'});
print "Set-Cookie: $config{'sidname'}=x; path=/$sec\r\n" if ($in{'logout'});
print "Set-Cookie: testing=1; path=/$sec\r\n";
&header(undef, undef, undef, undef, 1, 1, undef, undef,
	"onLoad='document.forms[0].pass.value = \"\";
document.forms[0].user.focus()'");
print "<hr>\n";
print "\n<script>\nif (window != window.top) {\n
       window.top.location = window.location;\n        }\n</script>\n";
print "<center>\n";
if (defined($in{'failed'})) {
	print "<h3>$text{'session_failed'}</h3><p>\n";
	}
elsif ($in{'logout'}) {
	print "<h3>$text{'session_logout'}</h3><p>\n";
	}
elsif ($in{'timed_out'}) {
	print "<h3>",&text('session_timed_out',
int($in{'timed_out'}/60)),"</h3><p>\n";
	}



Michael Wray
S4F Technologies, Inc.
2448 S. 81st St.
Tulsa, OK 74137
http://www.s4f.com
mailto:mwray@s4f.com




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
-
Forwarded by the Webmin development list at webmin-devel@webmin.com
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic