Redirect to profile page after claiming (closes #51)

openid
Marcin Kulik 13 years ago
parent 8ae29838d7
commit 16d11a1249

@ -13,7 +13,7 @@ class UserTokensController < ApplicationController
notice = "Authenticated successfully, yippie!"
end
redirect_to root_path, :notice => notice
redirect_to profile_path(current_user), :notice => notice
else
render :error
end

@ -21,10 +21,10 @@ describe UserTokensController do
post :create, :user_token => user_token.token
end
it 'redirects to root_path' do
it 'redirects to ~nickname' do
post :create, :user_token => user_token.token
response.should redirect_to(root_path)
response.should redirect_to(profile_path(user))
end
end

Loading…
Cancel
Save