KAA-40: Add functionality to restore forgotten password.

Maybe better to use the 'checkUsernameOrEmailExists' function