Browse Source

Minor fixes

pull/2663/head
Igor Kulikov 7 years ago
parent
commit
b30370328f
  1. 3
      ui-ngx/src/app/core/auth/auth.service.ts

3
ui-ngx/src/app/core/auth/auth.service.ts

@ -128,7 +128,8 @@ export class AuthService {
}
public activate(activateToken: string, password: string, sendActivationMail: boolean): Observable<LoginResponse> {
return this.http.post<LoginResponse>('/api/noauth/activate?sendActivationMail=' + sendActivationMail, {activateToken, password}, defaultHttpOptions()).pipe(
return this.http.post<LoginResponse>(`/api/noauth/activate?sendActivationMail=${sendActivationMail}`,
{activateToken, password}, defaultHttpOptions()).pipe(
tap((loginResponse: LoginResponse) => {
this.setUserFromJwtToken(loginResponse.token, loginResponse.refreshToken, true);
}

Loading…
Cancel
Save