Skip to content

Commit

Permalink
remove cookie service code
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jan 2, 2024
1 parent 43486e1 commit f064181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/app/account/service/account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http'
import { BehaviorSubject, EMPTY, Observable, Subject, catchError, map, of, takeUntil, tap } from 'rxjs'

import { IAccount } from '../model/account.model'
import { CookieService } from 'ngx-cookie-service'
// import { CookieService } from 'ngx-cookie-service'
// TODO: uncomment when memberservice is added or change the account service so that this logic is absent from the account service
//import { MSMemberService } from 'app/entities/member/member.service';

Expand All @@ -21,7 +21,7 @@ export class AccountService {
// TODO: uncomment when language service is implemented
//private languageService: JhiLanguageService,
private sessionStorage: SessionStorageService,
private cookieService: CookieService,
//private cookieService: CookieService,
private http: HttpClient // TODO: uncomment when memberservice is added or change the account service so that this logic is absent from the account service //private memberService: MSMemberService
) {}

Expand Down Expand Up @@ -50,7 +50,7 @@ export class AccountService {
this.authenticated = true
const account: IAccount = response.body
if (account.langKey) {
this.cookieService.set('locale', account.langKey)
// this.cookieService.set('locale', account.langKey)
}
this.accountData.next(account)

Expand Down

0 comments on commit f064181

Please sign in to comment.