class PasswordChangeService (View source)

Changes the logged-in user's own password after verifying the current one; LDAP users are refused.

Constants

private ERROR_MESSAGES

Methods

__construct(UserLookupInterface&UserCredentialWriterInterface $userRepository, UserAuthenticationService $authService, UserContextService $userContextService)

No description

array
changePassword(string $oldPassword, string $newPassword)

No description

Details

__construct(UserLookupInterface&UserCredentialWriterInterface $userRepository, UserAuthenticationService $authService, UserContextService $userContextService)

No description

Parameters

UserLookupInterface&UserCredentialWriterInterface $userRepository
UserAuthenticationService $authService
UserContextService $userContextService

array changePassword(string $oldPassword, string $newPassword)

No description

Parameters

string $oldPassword
string $newPassword

Return Value

array