A wrong check in Nextcloud Server 19 and prior allowed to perform a denial of service attack when resetting the password for a user.