LOGIN

Name

LOGIN -- Client requested login or registration

Synopsis

<LOGIN TYPE="type"> <NAME>name</NAME> <PASSWORD>password</PASSWORD> <EMAIL>email</EMAIL> </LOGIN>
DataTypeExample
TYPEstringguest
NAMEstringGandalf
PASSWORDstringxxxx
EMAILstringplayer@ggzcommunity.org

Description

Client requested login or registration

Message Data

TYPE

Type of login, which can be one of "normal", "guest" or "first"

NAME

Login name

PASSWORD

Player password, which is only used for registered ("normal") players, or (optional) for the registration ("first")

EMAIL

Player email address for password retrieval, only used for the registration ("first")

Usage

The LOGIN tag is sent from the client to the server to request a player login. The request may come after SERVER. The client must have started the SESSION in advance. The server will respond to the request with a RESULT tag. There are three ways to use this tag: To login as a guest player (only name needed), to login as a registered player (name and password needed), or to register for the first time (name needed, password and email optional). If no password is given for the registration, the server will assign one.