[功能] 添加隐藏自动登录时发送登录成功消息

This commit is contained in:
Sattera
2023-06-02 20:06:49 +08:00
parent d25949fc3b
commit 7e5d9ed1e8
40 changed files with 50 additions and 51 deletions
@@ -70,7 +70,7 @@ public class TotpCodeCommand extends PlayerCommand {
boolean isCodeValid = totpAuthenticator.checkCode(auth, inputCode);
if (isCodeValid) {
logger.debug("Successfully checked TOTP code for `{0}`", player.getName());
asynchronousLogin.performLogin(player, auth);
asynchronousLogin.performLogin(player, auth,false);
} else {
logger.debug("Input TOTP code was invalid for player `{0}`", player.getName());
messages.send(player, MessageKey.TWO_FACTOR_INVALID_CODE);