@staticmethod
def _handle_emailauth(maildomain='', message=''):
    """ Called when SteamGuard requires authentication via e-mail.
        Asks the user to enter the code.

        Args:
            maildomain: Optional. The mail domain of the e-mail address the SteamGuard
                code is send to.
            message: Optional. A message from Steam service.

        Returns:
            A string containing the code.
        """
    print('SteamGuard requires email authentication...')
    emailauth = input(
        'Please enter the code sent to your mail address at "%s": ' %
        maildomain)
    emailauth.upper()
    return emailauth
