We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a18e7 commit 1248937Copy full SHA for 1248937
client/src/components/Auth/Login.js
@@ -8,6 +8,10 @@ import LoginForm from './LoginForm';
8
import { login } from '../../store/auth';
9
10
export class Login extends Component {
11
+ componentWillMount() {
12
+ localStorage.clear();
13
+ }
14
+
15
onSubmit = values => this.props.login(values)
16
.then(this.props.redirect)
17
.catch(({ response }) => {
0 commit comments