Skip to content

Commit fe7d6d7

Browse files
author
Ken Johnson
authored
Merge pull request #407 from tdtds/fix/api
fix api does not work
2 parents 9752016 + ad708f5 commit fe7d6d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/controllers/api/v1/users_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def valid_api_token
2121
# TODO :add some functionality to check if the HTTP Header is valid
2222
if !identify_user(token)
2323
redirect_to root_url
24+
else
25+
true
2426
end
2527
end
2628
end

0 commit comments

Comments
 (0)