For anyone using NodeBB to upload a screenshot from node.js
const buffer = await createImage({ path: `screenshot/annotation:${ annotationID }` , encoding: 'binary' }) const result = await rp({ url: `${ endpoint }/util/upload?_uid=${ _uid }`, method: 'POST', json: true, headers: { Authorization , 'Content-Type': 'multipart/form-data' }, formData: { 'files[]': { value: buffer, options: { filename: `annotaion-${ annotationID }.jpg`, contentType: 'image/jpg' } } }, })Login Unsuccessful
-
Hi!
I'm unable to login to my forum.
The error message is as follows:
Login Unsuccessful
We were unable to log you in, likely due to an expired session. Please try againThe web url --- returns mysite.com/login?error=csrf-invalid
Installed nodebb-plugin-recent-cards plugin and made a few changes in terms of post length.
Now, I'm unable to login.
Even activated alternate login using fb/twitter/googleplus .....unable to see those options too.
Help me to fix it.
To add, I'm even unable to register. The error is as follows:
Registration Error
We were unable to log you in, likely due to an expired session. Please try againThanks in advance
-
Any errors in browser console?