Commit 6dbae67ae687beb504d5fa3ee42a8199faf35f8b
Merge branch 'ShvaykaD-develop/3.0' into develop/3.0
Showing
2 changed files
with
4 additions
and
3 deletions
@@ -127,8 +127,9 @@ export class AuthService { | @@ -127,8 +127,9 @@ export class AuthService { | ||
127 | {email}, defaultHttpOptions()); | 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 | tap((loginResponse: LoginResponse) => { | 133 | tap((loginResponse: LoginResponse) => { |
133 | this.setUserFromJwtToken(loginResponse.token, loginResponse.refreshToken, true); | 134 | this.setUserFromJwtToken(loginResponse.token, loginResponse.refreshToken, true); |
134 | } | 135 | } |
@@ -68,7 +68,7 @@ export class CreatePasswordComponent extends PageComponent implements OnInit, On | @@ -68,7 +68,7 @@ export class CreatePasswordComponent extends PageComponent implements OnInit, On | ||
68 | } else { | 68 | } else { |
69 | this.authService.activate( | 69 | this.authService.activate( |
70 | this.activateToken, | 70 | this.activateToken, |
71 | - this.createPassword.get('password').value).subscribe(); | 71 | + this.createPassword.get('password').value, true).subscribe(); |
72 | } | 72 | } |
73 | } | 73 | } |
74 | } | 74 | } |