From android 5.0 L, user can reset his password/pin/pattern by using Android Device Manager(ADM).
User need to firstly sign in with his/her google account in phone, then enable “Android Device Manager” under Settings->Security->Device Administrators.