This commit is contained in:
root 2025-07-12 18:30:43 +08:00
parent de1b77065f
commit d3aa746e0b
1 changed files with 3 additions and 1 deletions

View File

@ -77,6 +77,8 @@ class PythonCliAuth {
}
});
console.log({ response })
if (!response.success) {
throw new Error(response.error || response.message || 'Login failed');
}
@ -282,7 +284,7 @@ class PythonCliAuth {
try {
const token = localStorage.getItem('auth_token');
const userStr = localStorage.getItem('auth_user');
if (token && userStr) {
this.token = token;
this.user = JSON.parse(userStr);