Skip to content

Commit

Permalink
Merge pull request #48 from zhinghu/bug
Browse files Browse the repository at this point in the history
Bug
  • Loading branch information
shulng authored Oct 14, 2024
2 parents 81bd1aa + 89b7ca0 commit 09a513e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Dependabot auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'zhinghu/CatSeedLogin'
steps:
- name: Dependabot metadata
id: metadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public boolean onCommand(CommandSender sender, Command command, String s, String
if (bindEmailOptional.isPresent() && bindEmailOptional.get().getEmail().equals(mail)) {
sender.sendMessage("§c已经向 " + mail + " 邮箱中发送验证码,请不要重复此操作");
} else {
EmailCode bindEmail = EmailCode.create(name, mail, 1000 * 60 * 20, EmailCode.Type.Bind);
EmailCode bindEmail = EmailCode.create(name, mail, 1000 * 60 * 5, EmailCode.Type.Bind);
sender.sendMessage("§6向邮箱发送验证码中...");
sendEmailCode(sender, name, mail, bindEmail);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean onCommand(CommandSender sender, Command command, String s, String
sender.sendMessage(Config.Language.RESETPASSWORD_EMAIL_REPEAT_SEND_MESSAGE.replace("{email}", optionalEmailCode.get().getEmail()));
} else {
//20分钟有效期的验证码
EmailCode emailCode = EmailCode.create(name, lp.getEmail(), 1000 * 60 * 20, EmailCode.Type.ResetPassword);
EmailCode emailCode = EmailCode.create(name, lp.getEmail(), 1000 * 60 * 5, EmailCode.Type.ResetPassword);
sender.sendMessage(Config.Language.RESETPASSWORD_EMAIL_SENDING_MESSAGE.replace("{email}", lp.getEmail()));
CatSeedLogin.instance.runTaskAsync(() -> {
try {
Expand Down

0 comments on commit 09a513e

Please sign in to comment.