warp-tech/warpgate

[BUG] Login asks for OTP key when none is associated with the account.

开放

#981 创建于 2024年4月16日

 (1 条评论) (0 个反应) (0 位负责人)Rust (281 个派生)github user discovery
area/uihelp wanted

仓库指标

星标
 (7,061 个星标)
PR 合并指标
 (平均合并 3天 5小时) (30 天内合并 70 个 PR)

描述

I added an OTP key to a user then realised I couldn't add it (Bitwarden wouldn't scan the QR code and it didn't display the raw hash).

I then deleted the OTP key from the account and clicked update. If I check in the admin panel there is no OTP key associated with the account, but when I want to log in with that account in the web interface, it asks for an OTP value.

Reproduction:

  1. Log in as admin
  2. Add otp key to account
  3. Click next (why is there no confirmation for the OTP key?)
  4. Save the account, but stay on the page
  5. Delete the OTP key
  6. Save the account again
  7. Log out as admin
  8. Try to log in as the changed user. Warpgate asks for an OTP key after password, which it shouldn't

I'm on version v0.9.1

贡献者指南