'Save password field values in __Auth table'

def _save_passwords(self):

    if self.flags.ignore_save_passwords:
        return
    for df in self.meta.get(u'fields', {u'fieldtype': (u'=', u'Password')}):
        new_password = self.get(df.fieldname)
        if (new_password and (not self.is_dummy_password(new_password))):
            set_encrypted_password(self.doctype, self.name, new_password, df.fieldname)
            self.set(df.fieldname, (u'*' * len(new_password)))
