Email confirmation for all users
-
As i understand it is required for a user to have a confirmed email therefore nodebb-plugin-session-sharing matches the email from the cookie and the one in the database? Nevertheless, as I understand just setting all users "emailConfirmed": 1 is not enough for it to work. So I want to know, what do I need to do to confirm all my users email?
thanks in advance
-
S support@community.nodebb.org shared this topic
-
julian I will be very thankful for your help in this question
I can see email field in my cookie with the exact email as in the manage/users and also there is a green mark nearby email. -
Also, how matching exactly works? For example, if I pass(to a cookie) as a value to the key field an id of the user in the nodebb, will it match it? Or do i need to pass to the cookie the exact email as well? Thanks
-
eugene_thedev you'll want to use the email validation methods in
src/user/email.js
to check whether a user's email is validated.You can also do this programmatically by calling
setUserField
to set the email, and thenuser.email.confirmByUid
-
-
julian, thanks for you answer, also could answer my last question?
Also, how matching exactly works? For example, if I pass(to a cookie) as a value to the key field an id of the user in the nodebb, will it match it? Or do i need to pass to the cookie the exact email as well? Thanks
-
eugene_thedev session sharing plugin will look for
id
first, and check it against the stored hash for it.Otherwise it will fall back to email.
-
julian so if i pass to id field an id of the user from nodebb and there is no remoteIds to this user, they will be matched?
-
julian tag