Debug auth flow
This commit is contained in:
parent
2e38ecd15b
commit
973cf5725c
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
function authenticate(){
|
||||
const selectedUser = users[currentUser].id;
|
||||
console.log(selectedUser);
|
||||
|
||||
lightdm.cancel_authentication();
|
||||
lightdm.authenticate(selectedUser);
|
||||
|
@ -7,13 +8,16 @@ function authenticate(){
|
|||
|
||||
async function authenticationComplete() {
|
||||
const selectedSession = sessions[currentSession].id;
|
||||
console.log(selectedSession);
|
||||
|
||||
await lightdm.respond($("#password-input").value);
|
||||
console.log("Response positive");
|
||||
lightdm.start_session(selectedSession);
|
||||
}
|
||||
|
||||
function bindAuthenticate() {
|
||||
$("#password-input").onkeypress = function(e) {
|
||||
console.log("Submitting");
|
||||
var keycode = e.code || e.key;
|
||||
if(keycode == "Enter"){
|
||||
authenticate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue