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(){
|
function authenticate(){
|
||||||
const selectedUser = users[currentUser].id;
|
const selectedUser = users[currentUser].id;
|
||||||
|
console.log(selectedUser);
|
||||||
|
|
||||||
lightdm.cancel_authentication();
|
lightdm.cancel_authentication();
|
||||||
lightdm.authenticate(selectedUser);
|
lightdm.authenticate(selectedUser);
|
||||||
|
@ -7,13 +8,16 @@ function authenticate(){
|
||||||
|
|
||||||
async function authenticationComplete() {
|
async function authenticationComplete() {
|
||||||
const selectedSession = sessions[currentSession].id;
|
const selectedSession = sessions[currentSession].id;
|
||||||
|
console.log(selectedSession);
|
||||||
|
|
||||||
await lightdm.respond($("#password-input").value);
|
await lightdm.respond($("#password-input").value);
|
||||||
|
console.log("Response positive");
|
||||||
lightdm.start_session(selectedSession);
|
lightdm.start_session(selectedSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
function bindAuthenticate() {
|
function bindAuthenticate() {
|
||||||
$("#password-input").onkeypress = function(e) {
|
$("#password-input").onkeypress = function(e) {
|
||||||
|
console.log("Submitting");
|
||||||
var keycode = e.code || e.key;
|
var keycode = e.code || e.key;
|
||||||
if(keycode == "Enter"){
|
if(keycode == "Enter"){
|
||||||
authenticate();
|
authenticate();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue