i am currently developing a database cutom login..
i have user database like username,userpassword, user email and userid..
after logged in,when i call user.getName from onJoinRoom i have my user name from database, but when i call user.getId, i dont have my user id from database...
how can i get my user id from database?
how did onJoinRoom function get the user id when i used database custom login?
my custom login uses this function:
Code: Select all
_server.loginUser(userName, passWord, SocketChannel)