Botched upgrade left me locked out

See this topic:
https://meta.discourse.org/t/fatal-js-error-breaking-admin-upgrade-page/69559?u=david_taylor