1
0
Fork 0

Lastfm multi-domain login

This commit is contained in:
magnolia-fan 2011-06-23 09:39:31 +04:00
parent a8ace58b20
commit 9f9e147a73
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ class LastFmController < ApplicationController
else
render :json => {
:connected => false,
:lastfm_login_url => 'http://www.last.fm/api/auth?api_key='+ @@api_key +'&cb=http://localhost/lastfm/connect/?sid='+ user.session.key
:lastfm_login_url => 'http://www.last.fm/api/auth?api_key='+ @@api_key +
'&cb=http://'+ request.host << '/lastfm/connect/?sid='+ user.session.key
}
end
end