Automatic login

When you use the automatic login from an email

with this kind of link

index.php?module=Login&action=logme&login=user&password=pass

how can i set the language?

after you login, try adding language=de to the Piwik URL

It remains Deutsch
even if i use this link with “language=fr”

http://www.abc.com/statistics/stats/index.php?module=Login&action=logme&pid=5&login=bianca@abc.com&password=c62d929e7b7e7b6165923a5dfc60cb56&url=http://www.abc.com/statistics/stats/index.php?pid=50&idSite=1&period=month&date=2011-07-04&idsite=2#module=Dashboard&action=embeddedIndex&idSite=1&period=month&date=2011-07-04&idsite=2&language=fr

even if i open the link from other browser [IE or Crome] , not Firefox [here I first open the link with “&language=de”]

Any sugestions? :slight_smile:

the language=fr should be added before the # hash tag

http://www.abc.com/statistics/stats/index.php?module=Login&action=logme&language=fr&pid=53&login=bianca@abc.com&password=c62d929e7b7e7b6165923a5dfc60cb56&url=http://www.abc.com/statistics/stats/index.php?pid=53&idSite=1&period=month&date=2011-07-05&idsite=2#module=Dashboard&action=embeddedIndex&idSite=1&period=month&date=2011-07-05&idsite=2

http://www.abc.com/statistics/stats/index.php?module=Login&action=logme&pid=54&login=bianca@abc.com&password=c62d929e7b7e7b6165923a5dfc60cb56&url=http://www.abc.com/statistics/stats/index.php?pid=54&idSite=1&period=month&date=2011-07-05&idsite=2&language=fr#module=Dashboard&action=embeddedIndex&idSite=1&period=month&date=2011-07-05&idsite=2

Sorry, in both cases the language remains “english”, even if the parameter is set to “fr”

You should urlencode() the value of &url=http://www.abc.com/statistics/stats/index.php?pid=54&idSite=1&period=month&date=2011-07-05&idsite=2&language=fr

something like: http%3A%2F%2Fwww.abc.com%2Fstatistics%2Fstats%2Findex.php%3Fpid%3D54%26idSite%3D1%26period%3Dmonth%26date%3D2011-07-05%26idsite%3D2%26language%3Dfr