eraseCredentials method typo
minor #4059 eraseCredentials method typo (danielsan)

This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4059).

Discussion
----------

eraseCredentials method typo

Commits
-------

819c588 eraseCredentials method typo