Include accountname in totp url
[mirror/userdir-ldap-cgi.git] / logout.cgi
index 585fd69..19c7c37 100755 (executable)
@@ -2,6 +2,7 @@
 
 # $Id: logout.cgi,v 1.2 1999/09/26 01:20:39 tausq Exp $
 # (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
+# Copyright (c) 2011, 2015 Peter Palfrader
 
 use lib '.';
 use strict vars;
@@ -14,11 +15,8 @@ my %config = &Util::ReadConfigFile;
 my $proto = ($ENV{HTTPS} ? "https" : "http");
 
 my $query = new CGI;
-my $id = $query->param('id');
 my $authtoken = $query->param('authtoken');
-&Util::ClearAuthToken($authtoken);
-my $doneurl = $query->param('done') || "$config{websearchurl}";
-
 &Util::ClearAuthToken($authtoken);
 
+my $doneurl = $config{websearchurl};
 print "Location: $proto://$ENV{SERVER_NAME}/$doneurl\n\n";