fix
This commit is contained in:
parent
de1b77065f
commit
d3aa746e0b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue