for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SumoCoders\FrameworkMultiUserBundle\Security;
use SumoCoders\FrameworkMultiUserBundle\Exception\InvalidPasswordResetTokenException;
use SumoCoders\FrameworkMultiUserBundle\User\UserInterface;
class PasswordResetToken
{
private static function generatePasswordResetToken()
return time() . base64_encode(random_bytes(10));
}
public static function validateToken(UserInterface $user, $token)
if ($user->getPasswordResetToken() === $token) {
getPasswordResetToken()
SumoCoders\FrameworkMult...ndle\User\UserInterface
getPassword()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
return true;
throw new InvalidPasswordResetTokenException('The given token is not valid.');
public static function getToken()
return self::generatePasswordResetToken();
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.