forked from mirrors/cursor-free-vip
新增TempMailPlus配置,支持临时邮箱验证功能。更新CursorRegistration类以集成TempMailPlus,并添加相应的国际化支持。新增EmailTabInterface和TempMailPlusTab类以实现邮箱验证逻辑。
This commit is contained in:
27
email_tabs/email_tab_interface.py
Normal file
27
email_tabs/email_tab_interface.py
Normal 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
|
||||
Reference in New Issue
Block a user