Skip to content

unable to delete user that was created by "login with github"  #8558

Closed
@ashimokawa

Description

@ashimokawa
  • Gitea version (or commit ref): 1.10-rc1
  • Git version: 2.20.1
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

  1. Go to try.gitea.io
  2. go to sign-in
  3. click "login with github"
  4. create a new account (left tab)
  5. after logging in with github go to settings/account
  6. click on delete user, enter password, confirm

A white page with the following error appears:
template: user/settings/account:62:48: executing "user/settings/account" at <eq .EmailNotificationsPreference "enabled">: error calling eq: invalid type for comparison
User Workaround:

  1. log out
  2. go to sign-in
  3. click forgot passwort
  4. click on the email link, specify a new password

Now it is possible to delete your user

What I also noticed:

  1. When creating a new user with "login with github", there is no complexity check for the password, a simple one seemed to be accepted (no error visible at least)
  2. the initial password does not work for login without gihub, but after clicking forgot password and creating a new one it does work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions