新增TempMailPlus配置,支持临时邮箱验证功能。更新CursorRegistration类以集成TempMailPlus,并添加相应的国际化支持。新增EmailTabInterface和TempMailPlusTab类以实现邮箱验证逻辑。

This commit is contained in:
陈佳慧
2025-04-26 10:29:20 +08:00
parent 4286b94a86
commit dee6a788bb
7 changed files with 193 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
from abc import ABC, abstractmethod
class EmailTabInterface(ABC):
"""Email tab interface for handling email verification"""
@abstractmethod
def refresh_inbox(self) -> None:
"""Refresh the email inbox"""
pass
@abstractmethod
def check_for_cursor_email(self) -> bool:
"""Check if there is a verification email from Cursor
Returns:
bool: True if verification email exists, False otherwise
"""
pass
@abstractmethod
def get_verification_code(self) -> str:
"""Get the verification code from the email
Returns:
str: The verification code if found, empty string otherwise
"""
pass