Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
screens.bind('open:login', function() {
$('#login :text:visible:first').focus();
$('#login :checkbox[name=rememberme]').attr('checked', !!cookie.get('rememberme'));
data.auth().then(function() {
screens.go('dashboard');
});
});