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

miaoxing / user / 10586597965

10 Aug 2024 07:32AM UTC coverage: 15.297%. Remained the same
10586597965

push

github

twinh
style: php-cs-fixer new_with_parentheses

21 of 79 branches covered (26.58%)

2 of 2 new or added lines in 2 files covered. (100.0%)

108 of 706 relevant lines covered (15.3%)

1.53 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