[+] Clear cookies when login expires
This commit is contained in:
@@ -93,6 +93,12 @@ export default class Login extends Vue
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Login expired -> clear cookies
|
||||||
|
if (response.data == 'Error: Login expired')
|
||||||
|
{
|
||||||
|
this.clearCookies();
|
||||||
|
}
|
||||||
|
|
||||||
// Show error message & allow user to retry
|
// Show error message & allow user to retry
|
||||||
this.error = response.data;
|
this.error = response.data;
|
||||||
this.disableInput = this.loading = false;
|
this.disableInput = this.loading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user