public function resetPassword(User $user)
    {
        $newPassword = uniqid(time(), true);
        $user->setPassword($newPassword);
        $this->save($user);

        return $newPassword;
    }
public function resetPassword(User $user)
    {
        $newPassword = uniqid(time(), true);
        $user->setPassword($newPassword);
        $this->save($user);

        return $newPassword;
    }
public function resetPassword ( User $ user ) { $ newPassword = uniqid ( time ( ) , true ) ; $ user -> setPassword ( $ newPassword ) ; $ this -> save ( $ user ) ; return $ newPassword ; }
Reset the Password for given User

@param User $user the user entity

@return string the generated Password
Reset the Password for given User