Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: cbd42e93acaf23552cf5df7d2a4054552a05e7a1
https://github.com/tribe29/checkmk/commit/cbd42e93acaf23552cf5df7d2a4054552…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/gui/userdb.py
M cmk/gui/wato/pages/user_profile/two_factor.py
M tests/unit/cmk/gui/test_userdb.py
Log Message:
-----------
Improved type of make_two_factor_backup_codes.
This simply makes some invalid return values (lists of different lengths)
impossible to represent, which is a very good idea in general.
As an added bonus: Do not use functions with side effects in assert.
Change-Id: I36aa49ef2e1291b55490441f3795a99ceb7e2642