feat: Store a session key in the browser's SessionStorage

This commit is contained in:
Alexander Polynomdivision
2018-09-06 20:22:41 +02:00
parent 423e2263dc
commit b4bc72640b
2 changed files with 26 additions and 2 deletions

View File

@@ -66,7 +66,8 @@ export default class LoginPage extends React.Component<{}, IState> {
const { username, password } = this.state;
this.props.login(username, password).then((res) => {
// Don't even do anything here!
// Set the session key
window.sessionStorage.setItem("authKey", "test123");
}, (err) => {
load(false);
showSnackbar("Failed to log in");