mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
fix: auto login
This commit is contained in:
parent
738c235091
commit
d7f3649eba
@ -103,6 +103,15 @@ export default () => {
|
||||
}`,
|
||||
secret: query.get('secret') ?? '',
|
||||
})
|
||||
} else if (endpointList().length === 0) {
|
||||
/**
|
||||
we only try auto login when there is nothing in endpoint list
|
||||
or user who is using config wont be able to switch to another endpoint ever
|
||||
*/
|
||||
void onSubmit({
|
||||
url: 'http://127.0.0.1:9090',
|
||||
secret: '',
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user