refactor: remove deprecated config files and update logging in account management scripts

This commit is contained in:
chengchongzhen
2024-12-31 13:21:07 +08:00
parent de33ff1e2e
commit 50e69cd51c
4 changed files with 2 additions and 12 deletions

View File

@@ -1,5 +0,0 @@
[Account]
email = dounpuv@mailto.plus
password = ccz14321@
first_name = cheng
last_name = zhen

View File

@@ -1,5 +0,0 @@
[Account]
email = xxx@mailto.plus
password = xxxx
first_name = xxx
last_name = xxx

View File

@@ -189,6 +189,7 @@ def delete_account(browser, tab):
def get_cursor_session_token(tab):
"""获取cursor session token"""
print("开始获取cookie")
cookies = tab.cookies()
cursor_session_token = None
for cookie in cookies:
@@ -209,7 +210,6 @@ def update_cursor_auth(email=None, access_token=None, refresh_token=None):
def sign_up_account(browser, tab):
"""注册账户流程"""
print("\n开始注册新账户...")
tab.get(sign_up_url)

View File

@@ -18,7 +18,7 @@ class EmailVerificationHandler:
# 打开新标签页访问临时邮箱
tab_mail = self.browser.new_tab(self.mail_url)
self.browser.activate_tab(tab_mail)
logging.info("打开邮箱页面")
print("打开邮箱页面")
# 输入用户名
self._input_username(tab_mail, username)