Log in to your Moodle Account > Click the profile icon in the top right corner of the moodle home page and click preferences from the list, then under the User Account section click Change Password, then you have to Enter the Old password and New Password, finally Click Save changes button.