TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.45k stars 626 forks source link

[Bug] MFA not working #2452

Open AliJaafar47 opened 1 year ago

AliJaafar47 commented 1 year ago

Request Type

Bug

Work Environment

Question Answer
OS version (server) Debian
OS version (client) 10
Virtualized Env. True
Dedicated RAM 8 GB
vCPU 8
Package Type Docker
Database Cassandra
Index type Elasticsearch
Attachments storage minio

Problem Description

I configured a local user in order to use MFA. But the login page never showed the entry for the code instead it show an error message "undefined" . undefined

Complementary information

Logs log

AliJaafar47 commented 1 year ago

I've tested sending sending credentiels using curl and it worked :

curl -XPOST https://thehive/api/login -H 'Content-Type: application/json' --insecure -d '{"user": "test", "password": "xxxxxxxx","code":"xxxxxx"}'

There is a problem in the WEB UI.