Hide actual remain time of rate limiting
This commit is contained in:
parent
83fa34eb75
commit
7fc3d2443b
|
|
@ -105,7 +105,7 @@ class UserController extends Controller
|
|||
$remain = 60 + session('last_mail_time', 0) - time();
|
||||
|
||||
if ($remain > 0) {
|
||||
return json(trans('user.verification.frequent-mail', compact('remain')), 1);
|
||||
return json(trans('user.verification.frequent-mail'), 1);
|
||||
}
|
||||
|
||||
if ($this->user->verified) {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ sign-remain-time: Available after :time :unit
|
|||
announcement: Announcement
|
||||
|
||||
verification:
|
||||
frequent-mail: You click the send button too fast. Wait for :remain secs, guy.
|
||||
frequent-mail: You click the send button too fast. Wait for 60 secs, guy.
|
||||
verified: Your account is already verified.
|
||||
success: Verification link was sent, please check your inbox.
|
||||
failed: We failed to send you the verification link. Detailed message :msg
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ sign-remain-time: :time :unit 后可签到
|
|||
announcement: 公告
|
||||
|
||||
verification:
|
||||
frequent-mail: 你邮件发送得太频繁啦,过 :remain 秒后再点发送吧
|
||||
frequent-mail: 你邮件发送得太频繁啦,过 60 秒后再点发送吧
|
||||
verified: 你已经验证过邮箱了
|
||||
success: 验证邮件已发送,请检查你的收件箱。
|
||||
failed: 邮件发送失败,详细信息::msg
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user