don't trigger update from checkPassword, it is already called by userExists, this is enough.
do not write to appconfig or preference tables if the value is unchanged
Merge pull request #9581 from owncloud/backport-9500

Backport of #9500 to stable6