Correct CWebUser::loginRequired() ajax logic
CHANGELOG
CHANGELOG
Merge pull request #2551 from creocoder/cwebuser-login-ajax-correct-logic

[READY] Correct CWebUser::loginRequired() ajax logic
fixed class name
added tests
more tests
fixed test
fixes #2554
changelog
used strcmp instead of complex comparison, code formatting
Merge pull request #2554 from yiisoft/range-validator-bug

Range validator doesn't work well with empty values when allowEmpty=false