@biz Never mind, I had to remove lines 158-161 and 188 and then it works. Thanks a lot for all your work!
biz
Posts
-
[nodebb-plugin-session-sharing] Session Sharing -
[nodebb-plugin-session-sharing] Session SharingWhen I remove the requirement for username or full name, the findUser does not find the user, the async.parallel returns:
{ uid: null, mergeUid: null }
https://github.com/julianlam/nodebb-plugin-session-sharing/blob/master/library.js
and line 185, the last else clause, would be executedI suspect it has to do with lines 159 and 160, but I do not understand the code here, do you have any ideas?
-
[nodebb-plugin-session-sharing] Session SharingHey @julian , thanks for this useful plugin.
Why is username or first and last name required in addition to ID inside the JWT? Is it possible to remove this requirement and only require ID to be contained in the JWT?
Surely the user's account can be located with just the ID, correct?
-
Programatically create users@julian Oh definitely, will do. Thanks.
-
Programatically create users@yariplus Do you know of a way to just create the users one time? I see the createUser function in nodebb and I'll probably write a plugin to use that, unless you know of someone who has done this already.
-
Programatically create users@yariplus Thanks I will check it out.
-
Programatically create usersHello.
I have a web application with a local login and registration system using email and password.
I want to programatically create a forum account upon registering for the web application, using the same email and password.
Is there a way to do this yet or no? I don't mind writing a plugin, but I want to make sure there is no existing way to do this.