Fixes #335. A user's token (or "word") that is used for feed and some API access will now not change unless explicity requested by the user.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@310 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2006-08-13 04:43:52 +00:00
parent 31214f1812
commit a1c199131b
4 changed files with 77 additions and 47 deletions

View file

@ -50,6 +50,12 @@ class UserController < ApplicationController
end
end
def refresh_token
@user.crypt_word
@user.save
redirect_to :controller => 'user', :action => 'preferences'
end
protected
def do_change_password_for(user)