Gcr.Prompt.prototype.password_finish
function password_finish(result: Gio.AsyncResult): String {
// Gjs wrapper for gcr_prompt_password_finish()
}
Complete an operation to prompt for a password.
A password will be returned if the user enters a password successfully. The returned password is valid until the next time a method is called to display another prompt.
null will be returned if the user cancels or if an error occurs. Check the @error argument to tell the difference.
- result
asynchronous result passed to callback
- Returns
the password owned by the prompt, or null