[Security]fixed Login when there is no session.
bug #3866 [Book][Security]fixed Login when there is no session. (aitboudad)

This PR was merged into the 2.3 branch.

Discussion
----------

[Book][Security]fixed Login when there is no session.

| Q             | A
| ------------- | ---
| Doc fix?	 | yes
| New docs? | no
| Applies to | all
|Fixed tickets |	-

Commits
-------

a7b8bc4 [Security]fixed Login when there is no session.