account

package
v0.0.0-...-8dc4765 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None             = 31  // no status
	Normal           = 32  // login authentication is good
	Incorrect        = 33  // wrong id or password
	Online           = 34  // account is logged in already
	OutOfService     = 35  // cannot connect at the moment; [EP16 or never - shows nothing]
	AccountExpired   = 36  // account expired
	IpBanned         = 37  // ip is blocked, though not account related
	Banned           = 38  // account id is blocked
	TestServerTrial  = 39  // "cannot use test server during free trial period, bla bla"...
	PcCafe           = 40  // "use pc cafe to login, bla bla"...
	Unverified       = 41  // account is unverified
	AccountDeleted   = 42  // inexistent or deleted account from whitelist
	AccountLocked    = 43  // too many wrong passwd attempts
	OutOfService2    = 47  // cannot connect at the moment
	AccountLockedSub = 49  // account locked due sub pass fail
	TMS              = 50  // [EP16+] time limit system; cannot start chatting
	EmailVerify      = 113 // please complete email verification first
	OGPTransfer      = 114 // transfer OGP information to EST accounts first
	AccountInactive  = 115 // logged out for a long time, activate first
	ChangingPasswd   = 116 // you can connect after changing password
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCheckReq

type AuthCheckReq struct {
	Id       int32
	Password string
}

type AuthCheckRes

type AuthCheckRes struct {
	Result bool
}

type AuthRequest

type AuthRequest struct {
	UserId   string
	Password string
}

type AuthResponse

type AuthResponse struct {
	Id          int32
	Status      byte
	AuthKey     string `db:"auth_key"`
	SubPassChar byte
	CharList    []CharCount
}

type CharCount

type CharCount struct {
	Server byte
	Count  byte
}

type OnlineReq

type OnlineReq struct {
	Account int32
	Kick    bool
}

type OnlineRes

type OnlineRes struct {
	Result bool
}

type VerifyReq

type VerifyReq struct {
	AuthKey   uint32
	UserIdx   uint16
	ServerId  byte
	ChannelId byte
	IP        string
	DBIdx     int32
}

type VerifyRes

type VerifyRes struct {
	Verified bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL