Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0.0-beta10
Description: 

The following two methods have been added to the \Drupal\user\UserInterface:

  • setExistingPassword()
  • checkExistingPassword()

The methods are needed if the user account of the current user is to be validated and protected user fields (mail or password) have changed. For more details on how those methods are used see https://www.drupal.org/node/2460247.

Impacts: 
Module developers