grinnellplans / grinnellplans-php

Automatically exported from code.google.com/p/grinnellplans
Other
7 stars 7 forks source link

unbreak login api call #292

Closed acohn closed 6 years ago

acohn commented 6 years ago

The login API also tries to update the user's geolocation. I missed this when I removed the rest of the GeoIP stuff, which meant that the API php file tried to import a now-deleted class. Oops!

The removed $user->save() call has always been superfluous - User::login() saves before returning, and nothing in between that point and this one mutates the $user object.