Skip to content

Commit

Permalink
Fixed signout on close user account (#1129)
Browse files Browse the repository at this point in the history
Fixed signout on close user account
added notification parameter to send an email for the developer portal
  • Loading branch information
ygrik authored Jan 26, 2021
1 parent d2b596f commit 90ab863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/usersService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,12 @@ export class UsersService {
value: "*"
};

const query = Utils.addQueryParameter(userId, "deleteSubscriptions=true&notify=true");
const query = Utils.addQueryParameter(userId, `deleteSubscriptions=true&notify=true&appType=${Constants.AppType}`);

await this.mapiClient.delete<string>(query, [header, MapiClient.getPortalHeader("deleteUser")]);

this.signOut();
this.authenticator.clearAccessToken();
location.assign("/");
}
catch (error) {
this.navigateToSignin();
Expand Down

0 comments on commit 90ab863

Please sign in to comment.