[BUG] two-factor authentication - Add credential

Two-factor authentification in WATO cannot be configured. Error message:

"Registration failed: Cannot read properties of undefined (reading ‘crate’)

The error occurs on a fresh installed site when click the first time on button “Add credential”.
image

CEE 2.1.0p13

I have the simillar in 2.1.0p21.cee
The error is:

slika

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

Have you already made sure that the prerequisites are fulfilled?

thanks chauhan_sudhir , i have not HTTPS on this server !

perhaps the error message should be in futur more explicit… :slight_smile:

1 Like

Yeah sure. We will write " Please follow the prerequisites" :slight_smile:
Have a nice weekend.