So yesterday I changed password on ubuntu, but today I wanted to revert it so I entered user accounts and tried to change it, but sadly I could not. It told me password is not secure enough or something then i disabled log in options, but i want it back as it was

I cannot use sudo as I don't know what password to enter.
Now I can not change password at all
any way to make it as it was?