Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include the secret into the user authentication
Fairly simple fix We read the hardcoded secret directly from the `SecretCheck` module since we should not have come to this screen unless the input `SecretCheck` and the hardcoded secret match, so we might as well use the hardcoded check. This is the final set of changes for e-mission/e-mission-docs#628 Testing done: Checked the userid on the server. ``` {'_id': ObjectId('60503a011fa22fb602d332b1'), 'user_email': 'REPLACEMEkVVdF9rT', 'uuid': UUID('cf8ccb7b-84d7-40e4-a726-7691e614b042'), 'update_ts': datetime.datetime(2021, 3, 15, 21, 54, 25, 463000)}] ``` Checked the userid on the phone - was the same Checked the server logs, auth was fine ``` START 2021-03-15 21:54:25.460376 POST /profile/create END 2021-03-15 21:54:25.467684 POST /profile/create 0.007261991500854492 START 2021-03-15 21:54:25.583845 POST /profile/get END 2021-03-15 21:54:25.589675 POST /profile/get cf8ccb7b-84d7-40e4-a726-7691e614b042 0.005787849426269531 START 2021-03-15 21:54:26.051814 POST /profile/update END 2021-03-15 21:54:26.057612 POST /profile/update cf8ccb7b-84d7-40e4-a726-7691e614b042 0.0057489871978759766 START 2021-03-15 21:55:32.222428 POST /result/metrics/timestamp END 2021-03-15 21:55:32.234051 POST /result/metrics/timestamp cf8ccb7b-84d7-40e4-a726-7691e614b042 0.011476993560791016 ```
- Loading branch information