How To Set When Password is Required

Hi! I am using 12.3 KDE and need to know how to regulate when a password is required. For example: after a laptop goes to sleep mine does not require a password and I want it to.

Thanks-

In Systemsettings - Power Management - Advanced: check the “lock screen on resume” option. It should be on.