File tree Expand file tree Collapse file tree 3 files changed +1
-22
lines changed
Expand file tree Collapse file tree 3 files changed +1
-22
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ import {
4242 UnsetUserAsIdleAction
4343} from './auth.actions' ;
4444import { NativeWindowRef , NativeWindowService } from '../services/window.service' ;
45- import { Base64EncodeUrl } from '../../shared/utils/encode-decode.util' ;
4645import { RouteService } from '../services/route.service' ;
4746import { EPersonDataService } from '../eperson/eperson-data.service' ;
4847import { getAllSucceededRemoteDataPayload } from '../shared/operators' ;
@@ -103,7 +102,7 @@ export class AuthService {
103102 */
104103 public authenticate ( user : string , password : string ) : Observable < AuthStatus > {
105104 // Attempt authenticating the user using the supplied credentials.
106- const body = ( `password=${ Base64EncodeUrl ( password ) } &user=${ Base64EncodeUrl ( user ) } ` ) ;
105+ const body = ( `password=${ encodeURIComponent ( password ) } &user=${ encodeURIComponent ( user ) } ` ) ;
107106 const options : HttpOptions = Object . create ( { } ) ;
108107 let headers = new HttpHeaders ( ) ;
109108 headers = headers . append ( 'Content-Type' , 'application/x-www-form-urlencoded' ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments