Lastfm multi-domain login
This commit is contained in:
parent
a8ace58b20
commit
9f9e147a73
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue