If you have installed TWRP on your device, you can reset your lockscreen password using TWRP. To do this, you need to Boot your device in TWRP Recovery. Then go to Advanced >> File Manager >> data >> system and delete the following 5 files:
gatekeeper.password.key
gatekeeper.pattern.key...