I don't think it's possible to recover from an unhandledException, the plugin needs to check the post object to make sure it's not undefined. Or needs to wrap that part of the code in a try/catch.
Problem with 2factor plugin and webauthn
@julian Nice feature, but i got 'id and credid were the same'
I am using 1.18.6, nodebb-plugin-2factor is 3.0.2
My yubico key works on yubico test site
Hi @frankm -- thanks for reporting... regarding the error message: "were the same" or not the same?
This is significant because
credIdare supposed to be the same @yLothar helped me work through an issue where they were not the same, and that was fixed in v3.0.3 of the plugin.
Edit: I took a closer look at your post, and you are using the funky (not in a good way) v3.0.2 version. Please upgrade to v3.0.4
FrankM last edited by FrankM
After testing 3.0.2 and seeing the error message, I discovered version 3.04 and updated the plugin. I could then register the key, baer after logging out and logging in again nothing worked.....
A search revealed that the forum stopped working because of an error message....
The only possibility was now the following
./nodebb reset -p nodebb-plugin-2factor
2022-01-11T15:55:29.071Z [4568/85668] - error: [plugins] Error executing 'static:sockets.validateSession' in plugin 'nodebb-plugin-2factor' Error: [[2factor:second-factor-required]] at plugin.checkSocket (/home/user_radforum/nodebb/node_modules/nodebb-plugin-2factor/library.js:323:9) at processTicksAndRejections (node:internal/process/task_queues:96:5) [..shortened..]
@frankm That error shouldn't crash NodeBB. What do you mean when you say "nothing happens"?
@julian Forum down and forum constantly restarts and crashes.
@frankm I believe this is fixed in
It's specifically an issue with Node v16... downgrading to v14 should fix the issue for now.
@julian It works