Skip to content

MFA settings for totp is not persist during restart of container #7

@jozefrebjak

Description

@jozefrebjak

Summary

If user configure MFA via http://bookstack.example.com/mfa/setup, then can log in via 2FA, but when I change docker-compose stack where I have volumes mapped like

    volumes:
      - bookstack_data:/data
      - bookstack_logs:/www/logs/

after restart of container user with configured 2FA is not permitted to login with error in nginx access.log

2025-07-24T09:47:48+02:00 188.120.2.115 REDACTED- 500 POST "/mfa/totp/verify" 0cd4a9e0db2be6237b61f85be31fb9dc HTTP/1.1 8783 "https:/REDACTEDt/mfa/verify" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions