mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
#2203: Allow using REST API with token
This commit is contained in:
parent
ec59f10af8
commit
d3ba80c84e
4 changed files with 7 additions and 7 deletions
|
|
@ -71,7 +71,7 @@ module LoginSystem
|
|||
end
|
||||
|
||||
def login_or_feed_token_required
|
||||
if ['rss', 'atom', 'txt', 'ics'].include?(params[:format])
|
||||
if ['rss', 'atom', 'txt', 'ics', 'xml'].include?(params[:format])
|
||||
if user = User.where(:token => params[:token]).first
|
||||
set_current_user(user)
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue