• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / user / 5232140438

pending completion
5232140438

push

github

twinh
test(antd5): 关闭 `hashed`

21 of 70 branches covered (30.0%)

84 of 661 relevant lines covered (12.71%)

1.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Mailer/ResetPassword.php
1
<?php
2

3
namespace Miaoxing\User\Mailer;
4

5
/**
6
 * @property \Miaoxing\Plugin\Service\User $user
7
 */
8
class ResetPassword extends \Miaoxing\Mail\Base
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function prepare()
14
    {
15
        // @codingStandardsIgnoreStart
16
        $this->Subject = '重置密码';
×
17

18
        $this->addAddress($this->user['email']);
×
19

20
        $nonce = $this->generateNonceStr();
×
21
        $timestamp = time();
×
22
        $userId = $this->user['id'];
×
23
        $password = $this->user['password'];
×
24
        $sign = md5($userId . $password . $timestamp . $nonce);
×
25
        $resetUrl = $this->url->full('password/reset-return?', [
×
26
            'nonce' => $nonce,
×
27
            'timestamp' => $timestamp,
×
28
            'userId' => $userId,
×
29
            'sign' => $sign,
×
30
        ]);
×
31

32
        $this->Body = $this->view->render('@user/mailers/resetPassword.php', get_defined_vars());
×
33
        // @codingStandardsIgnoreEnd
34
    }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc