lucyparsons / OpenOversight

Police oversight and accountability through public data 👮
https://openoversight.com
GNU General Public License v3.0
240 stars 79 forks source link

Edit login user functions to return the `User` #1013

Closed michplunkett closed 1 year ago

michplunkett commented 1 year ago

Fixes issue

https://github.com/lucyparsons/OpenOversight/issues/1010

Description of Changes

Edit the login_user functions so that they return the user (removing the need for an extra database query) and create constants for the login values.

Tests and linting