|
@@ 620-627 (lines=8) @@
|
| 617 |
|
throw new \UnexpectedValueException('the link is not exists.', -10018); |
| 618 |
|
} |
| 619 |
|
|
| 620 |
|
if ($reset_code->invalid_flag == 1) |
| 621 |
|
{ |
| 622 |
|
throw new \UnexpectedValueException('the link has been invalid.', -10020); |
| 623 |
|
} |
| 624 |
|
else if ($reset_code->expired_at < time()) |
| 625 |
|
{ |
| 626 |
|
throw new \UnexpectedValueException('the link has been expired.', -10017); |
| 627 |
|
} |
| 628 |
|
|
| 629 |
|
$email = $reset_code->email; |
| 630 |
|
$user = Sentinel::findByCredentials([ 'email' => $email ]); |
|
@@ 673-680 (lines=8) @@
|
| 670 |
|
throw new \UnexpectedValueException('the link is not exists.', -10018); |
| 671 |
|
} |
| 672 |
|
|
| 673 |
|
if ($reset_code->invalid_flag == 1) |
| 674 |
|
{ |
| 675 |
|
throw new \UnexpectedValueException('the link has been invalid.', -10020); |
| 676 |
|
} |
| 677 |
|
else if ($reset_code->expired_at < time()) |
| 678 |
|
{ |
| 679 |
|
throw new \UnexpectedValueException('the link has been expired.', -10017); |
| 680 |
|
} |
| 681 |
|
|
| 682 |
|
$email = $reset_code->email; |
| 683 |
|
$user = Sentinel::findByCredentials([ 'email' => $email ]); |