Backported r2609 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2652 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2679cc2045
commit
aa38f755c6
|
@ -63,6 +63,7 @@ class AccountController < ApplicationController
|
||||||
token = Token.create(:user => user, :action => 'autologin')
|
token = Token.create(:user => user, :action => 'autologin')
|
||||||
cookies[:autologin] = { :value => token.value, :expires => 1.year.from_now }
|
cookies[:autologin] = { :value => token.value, :expires => 1.year.from_now }
|
||||||
end
|
end
|
||||||
|
call_hook(:controller_account_success_authentication_after, {:user => user })
|
||||||
redirect_back_or_default :controller => 'my', :action => 'page'
|
redirect_back_or_default :controller => 'my', :action => 'page'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue