Adding a logout handler that redirects to login page
This commit is contained in:
1 parent
08fc0100f8
commit
0a82bfd6b6
1 file changed
+5
@@ -1 +1,6 @@
|
|||||||
import { Accounts } from 'meteor/accounts-base';
|
import { Accounts } from 'meteor/accounts-base';
|
||||||
|
import { Router } from 'meteor/iron:router';
|
||||||
|
|
||||||
|
Accounts.onLogout(() => {
|
||||||
|
Router.go('/entrySignIn');
|
||||||
|
});
|
||||||
Reference in new issue
Block a user