Bad Password Fedora [Solved]

Bad password simply means the password is bad for security reasons. That is the password is too simple.
Changing password for user john.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.

You may face this problem on any version of fedora like fedora 29,30 or even 31. There are two workaround for this problem

1. Set a strong password

A strong password is one which contains minimum 8 characters, at least one uppercase letter, one digit and special symbol. For example, if your name is John set your password as John@fedora$123 which is a good password. Replace your name with john and set.

2. Change password as root

Change it as root, it will still say BAD PASSWORD but will apply the changes anyway
su -
[root@localhost ~]# passwd username
Changing password for user username
New UNIX password: 
BAD PASSWORD: is too simple
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
[root@localhost ~]#