Redirect to the main page when logging out

This commit is contained in:
yflory committed 2017-01-30 15:26:32 +01:00
1 parent 6661eedacf
commit 58d8a30b5b
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -175,7 +175,8 @@ define([
if (!o && n) {
window.location.reload();
} else if (o && !n) {
window.location.reload();
//window.location.reload();
window.location.href = '/';
}
});
+1 -1
View File
@@ -439,7 +439,7 @@ define([
$userAdmin.find('a.logout').click(function (e) {
Cryptpad.logout();
window.location.reload();
window.location.href = '/';
});
$userAdmin.find('a.login').click(function (e) {
window.open('/user');