function hasPassword hasPassword(user: User): Promise<boolean> Check if a user has set their password (password_hash is non-empty encrypted value) Parameters user: User Return Type Promise<boolean>