Skip to content

Commit

Permalink
1. add configmap path 2. remove cookie auth
Browse files Browse the repository at this point in the history
  • Loading branch information
icowan committed Aug 30, 2019
1 parent fc5d34a commit abe50b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/User/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export default class LoginPage extends Component {
Cookie.set("namespace", namespace);
Cookie.set("username", username);
Cookie.set("email", email);
Cookie.set("authorization", token.replace("Bearer+", "Bearer "));
// Cookie.set("authorization", token.replace("Bearer+", "Bearer "));
localStorage.setItem("authorization", response.data.token)
localStorage.setItem("username", response.data.username)
localStorage.setItem("email", response.data.email)
setAuthority("admin");
// this.props.dispatch(routerRedux.push('/dashboard/workplace'))
window.location.href = "/"
Expand Down

0 comments on commit abe50b1

Please sign in to comment.