From 22a5701d4b295b66622b1f94c92157915204cae2 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Fri, 16 Aug 2019 20:31:26 +0530 Subject: [PATCH] Login: Auto login when run through the rclone cli. --- src/reducers/userActionsReducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reducers/userActionsReducer.js b/src/reducers/userActionsReducer.js index 13a301da7..92501618d 100644 --- a/src/reducers/userActionsReducer.js +++ b/src/reducers/userActionsReducer.js @@ -20,7 +20,7 @@ export default function (state = initialState, action) { ...state, auth: {...state.auth, ...action.payload} }; - localStorage.setItem(AUTH_KEY, btoa(state.auth.userName + ":" + state.auth.password)); + localStorage.setItem(AUTH_KEY, state.auth.authKey); // localStorage.setItem(USER_NAME_KEY, state.auth.userName); // localStorage.setItem(PASSWORD_KEY, state.auth.password); localStorage.setItem(IP_ADDRESS_KEY, state.auth.ipAddress);