feat: Set the session token in Application
This commit is contained in:
@@ -35,8 +35,6 @@ const LoginPageWithRouter = withRouter(
|
||||
const username = this.usernameRef.value || "";
|
||||
const password = this.passwordRef.value || "";
|
||||
this.props.login(username, password).then((res: IUser) => {
|
||||
// Set the session key
|
||||
window.sessionStorage.setItem("sessionToken", res.sessionToken);
|
||||
this.props.history.push("/dashboard");
|
||||
}, (err) => {
|
||||
this.props.setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user