MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / CheckLoginserverUserCredentials

Function CheckLoginserverUserCredentials

loginserver/loginserver_command_handler.cpp:143–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 void CheckLoginserverUserCredentials(int argc, char **argv, argh::parser &cmd, std::string &description)
144 {
145 description = "Check user login credentials";
146
147 std::vector<std::string> arguments = {
148 "{username}",
149 "{password}"
150 };
151 std::vector<std::string> options = {};
152
153 if (cmd[{"-h", "--help"}]) {
154 return;
155 }
156
157 EQEmuCommand::ValidateCmdInput(arguments, options, cmd, argc, argv);
158
159 LoginAccountContext c;
160 c.username = cmd(2).str();
161 c.password = cmd(3).str();
162
163 auto res = AccountManagement::CheckLoginserverUserCredentials(c);
164
165 LogInfo("Credentials were {}", res != 0 ? "accepted" : "not accepted");
166 }
167
168 void UpdateLoginserverUserCredentials(int argc, char **argv, argh::parser &cmd, std::string &description)
169 {

Callers 1

RegisterRoutesFunction · 0.85

Calls 2

ValidateCmdInputFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected