ft_transcendence/frontend/static/js/views/accounts/LogoutView.js

12 lines
300 B
JavaScript
Raw Normal View History

2023-11-29 10:05:49 -05:00
import { client, navigateTo } from "../../index.js";
import AbstractAuthentificateView from "../AbstractAuthentificateView.js";
2023-11-29 10:05:49 -05:00
export default class extends AbstractAuthentificateView
2023-11-29 10:05:49 -05:00
{
constructor(params) {
super(params);
this.setTitle("Logout");
client.logout();
2023-11-29 10:05:49 -05:00
navigateTo("/login")
}
}