#2203: Allow using REST API with token

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-04 20:31:32 +03:00
parent ec59f10af8
commit d3ba80c84e
4 changed files with 7 additions and 7 deletions

View file

@ -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