Skip to content

Commit

Permalink
Login: Auto login when run through the rclone cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
negative0 committed Aug 16, 2019
1 parent cd9119d commit 22a5701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/userActionsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 22a5701

Please sign in to comment.