| 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 | { |
no test coverage detected