window.onbeforeunload = function() {
localStorage.clear();
return '';
};--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
http://docs.meteor.com/#accounts_validateloginattempt
Security stuff like this should always be done on the server. Never the client.
just curious, window.onbeforeunload will clear your localstorage even if you just refresh your page.
i dont think this is what you want though
But why is that a security concern?
Have you tried Dave's suggestion?