[CST-4767] encode-decode.util.ts removed

This commit is contained in:
Davide Negretti
2021-10-26 11:11:21 +02:00
parent 6ff065cd27
commit 035a7826ba
3 changed files with 1 additions and 22 deletions

View File

@@ -42,7 +42,6 @@ import {
UnsetUserAsIdleAction
} from './auth.actions';
import { NativeWindowRef, NativeWindowService } from '../services/window.service';
import { loginEncodeUrl } from '../../shared/utils/encode-decode.util';
import { RouteService } from '../services/route.service';
import { EPersonDataService } from '../eperson/eperson-data.service';
import { getAllSucceededRemoteDataPayload } from '../shared/operators';
@@ -103,7 +102,7 @@ export class AuthService {
*/
public authenticate(user: string, password: string): Observable<AuthStatus> {
// Attempt authenticating the user using the supplied credentials.
const body = (`password=${loginEncodeUrl(password)}&user=${loginEncodeUrl(user)}`);
const body = (`password=${encodeURIComponent(password)}&user=${encodeURIComponent(user)}`);
const options: HttpOptions = Object.create({});
let headers = new HttpHeaders();
headers = headers.append('Content-Type', 'application/x-www-form-urlencoded');