[interchange] Fix CookieLogin for indirect_login

Jon Jensen <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 3daa940b3d370fb312b9154c88a580055ae48712
Author: Josh Lavin <[email protected]>
Date:   Wed Mar 24 19:33:46 2010 -0500

    Fix CookieLogin for indirect_login
    
    Stores value of indirect_login field in MV_USERNAME cookie, if present, instead of username.

 lib/Vend/UserDB.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/UserDB.pm b/lib/Vend/UserDB.pm
index 26767d8..0f5f1f5 100644
--- a/lib/Vend/UserDB.pm
+++ b/lib/Vend/UserDB.pm
@@ -1519,7 +1519,7 @@ sub login {
 						);
 		}
 
-		username_cookies($self->{USERNAME}, $pw) 
+		username_cookies($self->{PASSED_USERNAME} || $self->{USERNAME}, $pw) 
 			if $Vend::Cfg->{CookieLogin};
 
 		if ($self->{LOCATION}{LAST} ne 'none') {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.