File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/common/client/auth_strategies Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 19221922 } ;
19231923
19241924 Basic . Token = function ( credentials ) {
1925- var words = CryptoJS . enc . Utf8 . parse ( credentials . username + ':' + credentials . password ) ;
1925+ var words = CryptoJS . enc . Utf8 . parse ( ( credentials . username || '' ) + ':' + ( credentials . password || '' ) ) ;
19261926 this . encoded = CryptoJS . enc . Base64 . stringify ( words ) ;
19271927 } ;
19281928
Original file line number Diff line number Diff line change 1414 } ;
1515
1616 Basic . Token = function ( credentials ) {
17- var words = CryptoJS . enc . Utf8 . parse ( credentials . username + ':' + credentials . password ) ;
17+ var words = CryptoJS . enc . Utf8 . parse ( ( credentials . username || '' ) + ':' + ( credentials . password || '' ) ) ;
1818 this . encoded = CryptoJS . enc . Base64 . stringify ( words ) ;
1919 } ;
2020
You can’t perform that action at this time.
0 commit comments