Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Hart committed Aug 4, 2015
2 parents 33e22b8 + 5b5cf81 commit ea1915d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ var login = (function (lightdm) {
userlist_entry.className = 'selected';
}

clear_message();
hide_loading();

if (lightdm._username) {
lightdm.cancel_authentication();
}
Expand Down Expand Up @@ -180,6 +183,12 @@ var login = (function (lightdm) {
lightdm.start_authentication(user.value);
}
};
window.show_error = function (e) {
console.log('Error: ' + e);
};
window.show_prompt = function (e) {
console.log('Prompt: ' + e);
};

// exposed outside of the closure
var init = function () {
Expand All @@ -196,8 +205,9 @@ var login = (function (lightdm) {
});

document.getElementById('login-form').addEventListener('submit', function (e) {
debug_msg('Form submitted');
e.preventDefault();

debug_msg('Form submitted');
window.provide_secret();
});

Expand Down

0 comments on commit ea1915d

Please sign in to comment.