Skip to content

In emails, a sequence of six consecutive digits occasionally appears randomly in the Source field. #112

@RemMai

Description

@RemMai

temp_mail.py#L126

In the emails for registration and login verification, a sequence of six consecutive digits may randomly appear in the source field, which causes failure in fetching the email verification code.

It is recommended to use the following configuration:

OTP_REGISTER_PATTERN = {"regex": r"Your ChatGPT code is (?<!\d)(\d{6})(?!\d)", "replace": "Your ChatGPT code is "}
OTP_LOGIN_PATTERN = {"regex": r"Enter this temporary verification code to continue: (?<!\d)(\d{6})(?!\d)", "replace": "Enter this temporary verification code to continue: "} 

First, locate and match the correct verification code block, then remove the extraneous content. This will allow you to successfully extract the correct verification code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions