antirez / lamernews

Lamer News -- an HN style social news site written in Ruby/Sinatra/Redis/JQuery
http://lamernews.com
Other
1.35k stars 200 forks source link

Avoid redundant user lookup but refactoring update_auth_token api. #113

Closed beanz closed 11 years ago

beanz commented 13 years ago

Both calls to update_auth_token had argument '$user["id"]' and the first thing update_auth_token does is looks up the user record. Change update_auth_token api to take the user record instead.