mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-08 21:52:36 +01:00
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:
parent
31214f1812
commit
a1c199131b
4 changed files with 77 additions and 47 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue