[ic] Fix for UserDB.pm, CookieLogin and indirect_login

Josh Lavin josh-ic at att.net
Thu Mar 25 00:44:51 UTC 2010

Fix CookieLogin for indirect_login

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

--- 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};


Original patch by Kevin Walsh:

I've tested against the latest with and without the use of indirect_login.

Josh Lavin
Perusion -- Expert Interchange Consulting    http://www.perusion.com/

More information about the interchange-users mailing list