| @@ 555-562 (lines=8) @@ | ||
| 552 | $this->resetEmailVerificationToken($userId, false); |
|
| 553 | return false; |
|
| 554 | ||
| 555 | }else{ |
|
| 556 | ||
| 557 | // reset token if invalid, |
|
| 558 | // But, if the user id was invalid, this won't make any affect on database |
|
| 559 | $this->resetEmailVerificationToken($userId, false); |
|
| 560 | Logger::log("EMAIL TOKEN", "User ID ". $userId . " is trying to access using invalid email token " . $emailToken, __FILE__, __LINE__); |
|
| 561 | return false; |
|
| 562 | } |
|
| 563 | } |
|
| 564 | ||
| 565 | /** |
|
| @@ 195-200 (lines=6) @@ | ||
| 192 | throw new Exception("Couldn't revoke email updates"); |
|
| 193 | } |
|
| 194 | ||
| 195 | if ($users === 1){ |
|
| 196 | return true; |
|
| 197 | }else{ |
|
| 198 | Logger::log("REVOKE EMAIL", "User ID ". $userId . " is trying to revoke email using wrong token " . $emailToken, __FILE__, __LINE__); |
|
| 199 | return false; |
|
| 200 | } |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|