diff --git a/ui-ngx/src/app/core/auth/auth.service.ts b/ui-ngx/src/app/core/auth/auth.service.ts index 8a3e7d3525..656711bdc0 100644 --- a/ui-ngx/src/app/core/auth/auth.service.ts +++ b/ui-ngx/src/app/core/auth/auth.service.ts @@ -127,8 +127,9 @@ export class AuthService { {email}, defaultHttpOptions()); } - public activate(activateToken: string, password: string): Observable { - return this.http.post('/api/noauth/activate', {activateToken, password}, defaultHttpOptions()).pipe( + public activate(activateToken: string, password: string, sendActivationMail: boolean): Observable { + return this.http.post(`/api/noauth/activate?sendActivationMail=${sendActivationMail}`, + {activateToken, password}, defaultHttpOptions()).pipe( tap((loginResponse: LoginResponse) => { this.setUserFromJwtToken(loginResponse.token, loginResponse.refreshToken, true); } diff --git a/ui-ngx/src/app/modules/login/pages/login/create-password.component.ts b/ui-ngx/src/app/modules/login/pages/login/create-password.component.ts index 64c6bbab48..47e36c5ce4 100644 --- a/ui-ngx/src/app/modules/login/pages/login/create-password.component.ts +++ b/ui-ngx/src/app/modules/login/pages/login/create-password.component.ts @@ -68,7 +68,7 @@ export class CreatePasswordComponent extends PageComponent implements OnInit, On } else { this.authService.activate( this.activateToken, - this.createPassword.get('password').value).subscribe(); + this.createPassword.get('password').value, true).subscribe(); } } }