Gcr.Prompt.prototype.get_password_strength

function get_password_strength(): Number(gint) {
    // Gjs wrapper for gcr_prompt_get_password_strength()
}
  

Get indication of the password strength.

Prompts will return a zero value if the password is empty, and a value greater than zero if the password has any characters.

This is only valid after a successful prompt for a password.

Returns

zero if the password is empty, greater than zero if not