diff --git a/src/app/settings/deauthorize-sessions.component.ts b/src/app/settings/deauthorize-sessions.component.ts
new file mode 100644
index 0000000000..21b55b2ae1
--- /dev/null
+++ b/src/app/settings/deauthorize-sessions.component.ts
@@ -0,0 +1,45 @@
+import {
+ Component,
+} from '@angular/core';
+
+import { ToasterService } from 'angular2-toaster';
+import { Angulartics2 } from 'angulartics2';
+
+import { ApiService } from 'jslib/abstractions/api.service';
+import { CryptoService } from 'jslib/abstractions/crypto.service';
+import { I18nService } from 'jslib/abstractions/i18n.service';
+import { MessagingService } from 'jslib/abstractions/messaging.service';
+
+import { PasswordVerificationRequest } from 'jslib/models/request/passwordVerificationRequest';
+
+@Component({
+ selector: 'app-deauthorize-sessions',
+ templateUrl: 'deauthorize-sessions.component.html',
+})
+export class DeauthorizeSessionsComponent {
+ masterPassword: string;
+ formPromise: Promise;
+
+ constructor(private apiService: ApiService, private i18nService: I18nService,
+ private analytics: Angulartics2, private toasterService: ToasterService,
+ private cryptoService: CryptoService, private messagingService: MessagingService) { }
+
+ async submit() {
+ if (this.masterPassword == null || this.masterPassword === '') {
+ this.toasterService.popAsync('error', this.i18nService.t('errorOccurred'),
+ this.i18nService.t('masterPassRequired'));
+ return;
+ }
+
+ const request = new PasswordVerificationRequest();
+ request.masterPasswordHash = await this.cryptoService.hashPassword(this.masterPassword, null);
+ try {
+ this.formPromise = this.apiService.postSecurityStamp(request);
+ await this.formPromise;
+ this.analytics.eventTrack.next({ action: 'Deauthorized Sessions' });
+ this.toasterService.popAsync('success', this.i18nService.t('sessionsDeauthorized'),
+ this.i18nService.t('logBackIn'));
+ this.messagingService.send('logout');
+ } catch { }
+ }
+}
diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json
index c118046316..e74fc871cd 100644
--- a/src/locales/en/messages.json
+++ b/src/locales/en/messages.json
@@ -818,6 +818,15 @@
"deauthorizeSessions": {
"message": "Deauthorize Sessions"
},
+ "deauthorizeSessionsDesc": {
+ "message": "Concerned your account is logged in on another device? Proceed below to deauthorize all computers or devices that you have previously used. This security step is recommended if you previously used a public PC or accidentally saved your password on a device that isn't yours. This step will also clear all previously remembered two-step login sessions."
+ },
+ "deauthorizeSessionsWarning": {
+ "message": "Proceeding will also log you out of your current session, requiring you to log back in. You will also be prompted for two-step login again, if enabled. Active sessions on other devices may continue to remain active for up to one hour."
+ },
+ "sessionsDeauthorized": {
+ "message": "All Sessions Deauthorized"
+ },
"purgeVault": {
"message": "Purge Vault"
},