mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-08-27 03:42:01 +00:00
Fixes unresponsive outline-do-oauth-step (#837)
* Fixes return statement * Disconnect account and show intro when DigitalOcean OAuth is cancelled through the Outline Manager
This commit is contained in:
parent
da61d6d4c7
commit
f5e9652ab2
1 changed files with 3 additions and 1 deletions
|
|
@ -341,7 +341,7 @@ export class App {
|
|||
this.appRoot.adminEmail = await this.digitalOceanAccount.getName();
|
||||
const status = await this.digitalOceanAccount.getStatus();
|
||||
if (status !== digitalocean.Status.ACTIVE) {
|
||||
return;
|
||||
return [];
|
||||
}
|
||||
const servers = await this.digitalOceanAccount.listServers();
|
||||
for (const server of servers) {
|
||||
|
|
@ -518,6 +518,8 @@ export class App {
|
|||
const oauth = runDigitalOceanOauth();
|
||||
const handleOauthFlowCancelled = () => {
|
||||
oauth.cancel();
|
||||
this.disconnectDigitalOceanAccount();
|
||||
this.showIntro();
|
||||
};
|
||||
this.appRoot.getAndShowDigitalOceanOauthFlow(handleOauthFlowCancelled);
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue