[BUG] two-factor authentication - Add credential

Hello

Il have the same bug when i try to “add credential” on my new server in latest version Checkmk Raw Edition 2.2.0p22 , with user cmkadmin :

“Registration failed: Cannot read properties of undefined (reading ‘create’)”

That occure on a old site upgraded and on a new created site !

i have not this problem on my old version Checkmk Raw Edition 2.1.0p40

i use the same browser in the two cases : Google Chrome Version 122.0.6261.58 (Build officiel) (64 bits) on Windows 10 Professionnel

i have no logs about this error, just apache access log :

IP - - [01/Mar/2024:14:36:02 +0100] “GET /TEST/check_mk/sidebar_snapin.py?names=tactical_overview,master_control&since=1709299929&_ajaxid=0 HTTP/1.1” 200 5939 “http://SITE/TEST/check_mk/index.py?start_url=%2FTEST%2Fcheck_mk%2Fuser_two_factor_overview.py” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36”

best regards
Hugo