-
-
Notifications
You must be signed in to change notification settings - Fork 116
Remove dependency on nette/security #132
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
Conversation
|
Can you change commit message to smthng like |
|
@dg Done. |
|
Btw it is required by storeRequest() & restoreRequest() |
|
@dg Added some conditions to make them work without user. |
|
Did you test it? |
|
Oh right... can't use getUser because it throws an exception... Added a test for storeRequest as well. There are no existing tests for restoreRequest. Can't really test it in a real application though. I use my own implementation of these methods to make them work with object parameters. |
|
Needs rebase after force-pushes... :( |
|
Thanks, merged |
| } while (isset($session[$key])); | ||
|
|
||
| $session[$key] = [$this->getUser()->getId(), $this->request]; | ||
| $session[$key] = [$this->user ? $this->user->getId() : null, $this->request]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NULL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, @dg already fixed that when he merged it. :-)
As far as I can tell nette/security seems to be optional everywhere in nette/application.