Security Policy Handling Failed

“Security Policy Handling Failed

Please attempt to log in again.

If this problem persists, please contact the system admin.”
———————————

error showed up after enabling password strength, restarted cpanel itself with:

CentOS 6 and earlier:
service cpanel restart

CentOS 7:
systemctl restart cpanel

Then it allowed logins again as normal.