Skip to content

2FA name is not copied from email when 2FA is mandaroy in user role #2971

@larciere

Description

@larciere

Describe the bug
The 2FA name and email address in the mobile app (Google Auth) does not use the correct email address for user roles where 2FA is mandatory. The account is showing "(guest@example.com)" where the name is correct, but the user email address is not used.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create new account with an assigned user role that requires 2FA
  2. Login with link from email
  3. Add password
  4. Add 2FA with Mobile app (google auth)
  5. 6 digit code is provided with name: guest@example.com in mobile phone.

Expected behavior
User email address should be used. This is the case when the same user reconfigures the 2FA from their profile settings.

Screenshots
N/A

Your Configuration (please complete the following information):
Docker image: ghcr.io/linuxserver/bookstack
BookStack v21.08.5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions