Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Issue when using Auth::check() #1526

Closed
dwightwatson opened this issue Jun 4, 2013 · 1 comment
Closed

[Bug] Issue when using Auth::check() #1526

dwightwatson opened this issue Jun 4, 2013 · 1 comment

Comments

@dwightwatson
Copy link
Contributor

I've come across an issue on my machine which looks as though it might have something to do with the Mcrypt extension but I cannot identify the cause. The issue has been documented elsewhere, like this question on Stack Overflow

ErrorException
unserialize(): Error at offset 0 of 32 bytes

open: /Users/Dwight/Dropbox/Git/tmtbl/bootstrap/compiled.php

public function decrypt($payload)
{
    $payload = $this->getJsonPayload($payload);
    $value = base64_decode($payload['value']);
    $iv = base64_decode($payload['iv']);
    return unserialize($this->stripPadding($this->mcryptDecrypt($value, $iv)));
}
@taylorotwell
Copy link
Member

We recently made a change to the encrypter. It will be necessary to re-encrypt any values you are storing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants