Skip to content

Conversation

@enumag
Copy link
Contributor

@enumag enumag commented May 1, 2016

As far as I can tell nette/security seems to be optional everywhere in nette/application.

@dg
Copy link
Member

dg commented May 2, 2016

Can you change commit message to smthng like composer: removed …?

@enumag
Copy link
Contributor Author

enumag commented May 2, 2016

@dg Done.

@dg
Copy link
Member

dg commented May 2, 2016

Btw it is required by storeRequest() & restoreRequest()

@enumag
Copy link
Contributor Author

enumag commented May 2, 2016

@dg Added some conditions to make them work without user.

@dg
Copy link
Member

dg commented May 2, 2016

Did you test it?

@enumag
Copy link
Contributor Author

enumag commented May 2, 2016

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.

@Majkl578
Copy link
Contributor

Majkl578 commented May 3, 2016

Needs rebase after force-pushes... :(

@dg dg merged commit bc2dfc2 into nette:master May 3, 2016
@dg
Copy link
Member

dg commented May 3, 2016

Thanks, merged

} while (isset($session[$key]));

$session[$key] = [$this->getUser()->getId(), $this->request];
$session[$key] = [$this->user ? $this->user->getId() : null, $this->request];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NULL

Copy link
Contributor Author

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. :-)

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

Successfully merging this pull request may close these issues.

4 participants