Nette\InvalidStateException – Service User has not been set. – login form
Notice: This thread is very old.
- David Matějka
- Moderator | 6445
Hi, user service is not available in a constructor. in a constructor you should just set dependencies etc.
for checking whether user is logged in, use startup()
method (or
checkRequirements
)