Show nicer error message if allocating the MFA setup fails
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 9 Aug 2021 09:27:51 +0000 (11:27 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 9 Aug 2021 09:27:51 +0000 (11:27 +0200)
commit9ce379dc7e01eaf331fc0525b446d1d4b8422b7c
tree7637addb3ada0e6dfc09c9af59a8493f435ca0e6
parent9db0fe5ced0f807fc6ec9ce607d2d4994c84725e
Show nicer error message if allocating the MFA setup fails

`Setup::allocateSetUpId` can deadlock if the form is submitted twice at the
same time. This error should not be normally seen by the user. If they do they
will be directed to "Try again" and then see that MFA is active, because one of
the requests succeeded. They will also receive the info mail letting them know
where to regenerate their backup codes if necessary.
wcfsetup/install/files/lib/form/MultifactorManageForm.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml