Showing
1 changed file
with
2 additions
and
1 deletions
@@ -128,7 +128,8 @@ export class AuthService { | @@ -128,7 +128,8 @@ export class AuthService { | ||
128 | } | 128 | } |
129 | 129 | ||
130 | public activate(activateToken: string, password: string, sendActivationMail: boolean): Observable<LoginResponse> { | 130 | public activate(activateToken: string, password: string, sendActivationMail: boolean): Observable<LoginResponse> { |
131 | - return this.http.post<LoginResponse>('/api/noauth/activate?sendActivationMail=' + sendActivationMail, {activateToken, password}, defaultHttpOptions()).pipe( | 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 | } |