Subject: Simple example for session.prelogin and session.newuser?
Hi,
I want that users are not able to register to my unb. Instead, they should login with the username/password they already have in my game. When doing this for the first time, their user should be created for unb with default settings (but e-mail I already know) and they should be able to edit all settings as usual.
Looks like "session.prelogin" and "session.newuser" are made exactly for that! Though the documentation is really nearly non-existent. I have no idea on how it is intended to be used! (Tried around a bit but to no success)
Would anyone mind writing me a simple example plugin that accepts the login for user "joe", password "joe" and uses "session.newuser" to for example set its email address to "joe@example.com"
I want that users are not able to register to my unb. Instead, they should login with the username/password they already have in my game. When doing this for the first time, their user should be created for unb with default settings (but e-mail I already know) and they should be able to edit all settings as usual.
Looks like "session.prelogin" and "session.newuser" are made exactly for that! Though the documentation is really nearly non-existent. I have no idea on how it is intended to be used! (Tried around a bit but to no success)
Would anyone mind writing me a simple example plugin that accepts the login for user "joe", password "joe" and uses "session.newuser" to for example set its email address to "joe@example.com"

Pompei2
Show profile
Link to this post
