Can Admin 'verify' a user if email not confirmed?

I have section on nodebb forum that can only be viewed by verified users. If email is not going through, so they cant self-validate, can I as Admin verify them?

0 points · 7 comments · view on lemmy.world

7 Comments

amaarets@community.nodebb.org · 1 pts · 262d

Every user? Or by conditions? This is easily possible with a simple plugin

balu@community.nodebb.org · 1 pts · 262d

But I don't use Nodebb UI. I Call the API For register user using Admin Token.

amaarets@community.nodebb.org · 1 pts · 262d

So you can also update the 'email:confirmed' field of the created user through the same API.

balu@community.nodebb.org · 1 pts · 261d

Ok thanks @amaarets. Can I send params like { username: "", email: "", password: "", 'email:confirmed': 1 } I try above way but the do not verify email.

baris@community.nodebb.org · 1 pts · 261d

Have you tried using this end point? https://github.com/NodeBB/NodeBB/blob/master/public/src/admin/modules/change-email.js#L26-L29

That's used to set a users email and confirm it as long as the calling user is admin.

balu@community.nodebb.org · 1 pts · 259d

baris Thank you, I'll try this.

balu@community.nodebb.org · 1 pts · 262d

I want if user register then auto verify. How was possible.