How to login to server with user name & password?

In AGameMode, the PostLogin is called by the Engine, but I want to have a chance for user click login button to login with user name & password, and In AGameMode(server), I check the name&password to accept or reject the user. some advices?

i think i’m late :slight_smile: but anyway:

to reject connection set ErrorMessage to not null in PreLogin.