Fixed unused imports and other errors flake8 caught.
Added key assignment on register connection if security is set to 0.
Added route get_session_key.
Created database version 2.1.0
Added session_keys table.
When verify_credentials is called a session key is added to cookies if the user's security is 1.
Fixed password_hash password type.
Added session_key password type to verify_credentials helper.
Added verify_session_key helper function.
Ran black over all files.
Fixed some type checking.
Migrated register_connection route to new HTTP Status Code convention.
404: Service was not found. -> 403: Service name or key is incorrect.
Replaced service name/key verification, from username/password verification, and to username resolving code with helper functions.
Added check to register_connection route to make sure an existing connection didn't already exist, and update it if it does.
Implemented #3 for HTML scripts for the routes:
register_connection
verify_credentials
vote
get_vote_count
get_score
gdpr_view
Implemented #3 for register_connection route.
Implemented #3 for verify_credentials route.
Implemented #3 for vote route.
Implemented #3 for get_vote_count route.
Implemented #3 for get_score route.
Implemented #3 with gdpr_view route.
Moved verify_credentials to verify_crednetials_raw.
verify_credentials now takes password_type and runs the proper method.
Added verify_service_username method that verifies the connection key.
Deprecated verify_credentials_hash route.
Fixes #3
Complete changelog: