1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

accept org invite

This commit is contained in:
Kyle Spearrin
2018-07-12 16:05:42 -04:00
parent 8e3d5b99c5
commit 470a767eaf
7 changed files with 146 additions and 1 deletions

View File

@@ -25,7 +25,12 @@ export class VerifyEmailTokenComponent implements OnInit {
private apiService: ApiService, private userService: UserService) { }
ngOnInit() {
let fired = false;
this.route.queryParams.subscribe(async (qParams) => {
if (fired) {
return;
}
fired = true;
if (qParams.userId != null && qParams.token != null) {
try {
await this.apiService.postAccountVerifyEmailToken(