Skip to content

2FA issues in dev version #14271

Closed
Closed
@binfalse

Description

@binfalse

Description

2FA seems to be broken in the current dev version.

I've had 2FA enabled and couldn't log in anymore after I updated the Docker image. After some debugging I disabled 2FA for my account (by deleting the corresponding line in the two_factor table) and was able to login again. (Actually, I needed to clean cookies as well, as it was then asking me for a scratch code...)

When trying to re-enable 2FA I get a 500 at the frontend (I can reproduce that at https://try.gitea.io -- at least I'll get a 500 as well if I try to setup 2FA there). The logs show

[E] PANIC: interface conversion: interface {} is nil, not string

see: https://gist.github.com/binfalse/2ca6706fb1244545649f218af1c6bce2 -- please note:

  • I replaced sensitive information with placeholders
  • even though I set COLORIZE = false the messages are apparently still colorized.. not sure what's going wrong there...? Just ignore the #011 commands..
  • logs went through rsyslog -> extra syslog prefixes, see https://binfalse.de/2018/02/21/logging-with-docker/

To me it looks like there is an issue with 2FA...? Let me know if you need further information or if I can do anything else to debug the issue! :)

Screenshots

Web interface just shows a 500..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions