[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};
http://github.com/jlavin/interchange/commit/49f5f367574d8f40dcab6c460156983cd212a0d7
Original patch by Kevin Walsh:
http://www.icdevgroup.org/pipermail/interchange-users/2007-March/047183.html
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