MT#22217 ngcp-sync-constants improve detecting users with password mismatch

* when there is a situation when a user has mixed records
      with correct and incorrect passowrds to detect such
      scenario and trigger password sync for the user

Change-Id: I2821dafa211779b149b9c0a8763939cd52f3bb55
changes/37/7837/2
Kirill Solomko 10 years ago
parent 6e281aeeb1
commit 9e32e4ffac

@ -182,6 +182,9 @@ sub sync_user {
SELECT count(User), Password = PASSWORD(?) as matched
FROM user
WHERE User = ?
GROUP by matched
ORDER by matched ASC
LIMIT 1
SQL
my $sth_upd = $dbh->prepare(<<SQL);

Loading…
Cancel
Save