feat: Store a session key in the browser's SessionStorage
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user