Fixed issue when forgot password not working for users with open invitation