Closed brvn0 closed 1 month ago
Does Bitwarden allow specifying 2FA length in config somewhere when selfhosting? Could you please point me to an example?
Sadly I didn't find - even after half an hour of searching - the relevant lines in config files nor in their docs. But I can send you a config example for vaultwarden (which is an open source, bitwarden compatible server for selfhosting) https://github.com/dani-garcia/vaultwarden/blob/main/.env.template#L468. Even though it isn't the original bitwarden server, I don't think it's wrong to also support vaultwarden since the additional work for allowing longer input in one field in the app is probably minimal.
As title states 2fa codes on selhosted bitwarden instances can be longer than only 6 chars. When putting in a longer 2fa code, the app states they can only be 6 characters long. If I have time I will open a pull request but this will happen at best on Friday this week.