1
0
mirror of https://github.com/bitwarden/web synced 2025-12-11 05:43:16 +00:00

org invite accept flow on login/register

This commit is contained in:
Kyle Spearrin
2018-07-13 10:51:52 -04:00
parent a1495a8f0c
commit 3cfe8bf751
7 changed files with 47 additions and 21 deletions

View File

@@ -1,5 +1,8 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router';
import {
ActivatedRoute,
Router,
} from '@angular/router';
import { ToasterService } from 'angular2-toaster';
import { Angulartics2 } from 'angulartics2';
@@ -19,7 +22,15 @@ export class RegisterComponent extends BaseRegisterComponent {
constructor(authService: AuthService, router: Router,
analytics: Angulartics2, toasterService: ToasterService,
i18nService: I18nService, cryptoService: CryptoService,
apiService: ApiService) {
apiService: ApiService, private route: ActivatedRoute) {
super(authService, router, analytics, toasterService, i18nService, cryptoService, apiService);
}
ngOnInit() {
this.route.queryParams.subscribe((qParams) => {
if (qParams.email != null && qParams.email.indexOf('@') > -1) {
this.email = qParams.email;
}
});
}
}