Device-specific password doesn't work after user's active directory password is changed

Steps to reproduce

  1. Create device token for WebDav
  2. Change password in Active Directory

Expected behaviour
“For password changes in external user backends the device-specific passwords are marked as invalid and once a login of the user account with the main password happens all device-specific passwords are updated and work again.”

Actual behaviour
Login to Nextcloud using web browser or client doesn’t update WebDav device password in 90% of attempts. Sometime it does if I will do it straight away, but if I wait around hour, the device password doesn’t work and I have to create it from begin. I’ve tested the behaviour on different serves with versions 18.0.1, 17.0.2 and 15.0.5. On all servers the behaviour is exactly the same.

Server configuration
Operating system: Ubuntu 18.04

Web server: nginx-1.16.1

Database: MariaDB 10.4.11

PHP version: 7.3.13

Nextcloud version: 18.0.1

Updated from an older Nextcloud/ownCloud or fresh install: Fresh install

Could you help me with this please?