Bug: Empty User settings breaks user's account
Created by: abeatrix
- Sourcegraph version: 3.37.0 - 3.39.0
- Platform information: Web
Steps to reproduce:
- Remove everything in your User's Setting then git
Save Changes

Expected behavior:
- Be able to log in again
- Be able to edit the file again
Actual behavior:
- Not able to log back into the account
- Site admin is not able to edit the file for the user
- The User's setting page errors out:

If would like immediate help on this, please email [email protected] (you can still create the issue, but there are not SLAs on issues like there are for support requests).