updateSharePasswordIfNeeded in Manager.php doesn't seem to work correctly

Hi all,

I’m running Nextcloud 12.0.2. I noticed that when I do a share by email share, the first email goes out correctly with a randomly generated password, but when the share gets “updated” and “updateShare()” gets called in Manager.php, it then verifies if the password has changed and ALWAYS ends up sending out a password email and the password in the email is the password for the share initiator user, not the password set on the share itself.

I think it’s because Chrome puts the user’s email into the password field in the share info box, and the share controller then thinks the password has changed.

Is there some way to get around this?