Commit 6dbae67ae687beb504d5fa3ee42a8199faf35f8b

Authored by Igor Kulikov
2 parents 1b0fabb7 b3037032

Merge branch 'ShvaykaD-develop/3.0' into develop/3.0

... ... @@ -127,8 +127,9 @@ export class AuthService {
127 127 {email}, defaultHttpOptions());
128 128 }
129 129
130   - public activate(activateToken: string, password: string): Observable<LoginResponse> {
131   - return this.http.post<LoginResponse>('/api/noauth/activate', {activateToken, password}, defaultHttpOptions()).pipe(
  130 + public activate(activateToken: string, password: string, sendActivationMail: boolean): Observable<LoginResponse> {
  131 + return this.http.post<LoginResponse>(`/api/noauth/activate?sendActivationMail=${sendActivationMail}`,
  132 + {activateToken, password}, defaultHttpOptions()).pipe(
132 133 tap((loginResponse: LoginResponse) => {
133 134 this.setUserFromJwtToken(loginResponse.token, loginResponse.refreshToken, true);
134 135 }
... ...
... ... @@ -68,7 +68,7 @@ export class CreatePasswordComponent extends PageComponent implements OnInit, On
68 68 } else {
69 69 this.authService.activate(
70 70 this.activateToken,
71   - this.createPassword.get('password').value).subscribe();
  71 + this.createPassword.get('password').value, true).subscribe();
72 72 }
73 73 }
74 74 }
... ...