|
|
@ -28,19 +28,25 @@ class Authenticate { |
|
|
|
|
|
|
|
|
|
|
|
_respond() { |
|
|
|
_respond() { |
|
|
|
var input = document.querySelector("#input-password") |
|
|
|
var input = document.querySelector("#input-password") |
|
|
|
|
|
|
|
let username = accounts.getDefaultUserName() |
|
|
|
input.blur() |
|
|
|
input.blur() |
|
|
|
input.disabled = true |
|
|
|
input.disabled = true |
|
|
|
|
|
|
|
if (username == accounts._guestAccount && lightdm.has_guest_account) { |
|
|
|
|
|
|
|
lightdm.authenticate_as_guest() |
|
|
|
|
|
|
|
} else { |
|
|
|
lightdm.respond(this._password) |
|
|
|
lightdm.respond(this._password) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
startAuthentication() { |
|
|
|
startAuthentication() { |
|
|
|
lightdm.cancel_authentication() |
|
|
|
lightdm.cancel_authentication() |
|
|
|
|
|
|
|
let username = accounts.getDefaultUserName() |
|
|
|
|
|
|
|
if (username == accounts._guestAccount && lightdm.has_guest_account) return |
|
|
|
lightdm.authenticate(String(accounts.getDefaultUserName())) |
|
|
|
lightdm.authenticate(String(accounts.getDefaultUserName())) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async _authentication_done() { |
|
|
|
async _authentication_done() { |
|
|
|
var form = document.querySelector("#login-form") |
|
|
|
var form = document.querySelector("#login-form") |
|
|
|
var input = document.querySelector("#input-password") |
|
|
|
|
|
|
|
form.classList.add("success") |
|
|
|
form.classList.add("success") |
|
|
|
|
|
|
|
|
|
|
|
await wait(500) |
|
|
|
await wait(500) |
|
|
|