When a password is changed it updates the MySQL
database accordingly. However, MySQL requires a
special "flush privileges" command to be invoked for the
changes to apply. See the MySQL documentation
The attached patch forces the "flush privileges"
command after a successful password change.