{"id":2963,"date":"2019-03-25T17:42:02","date_gmt":"2019-03-25T20:42:02","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb30908-confirming-user-and-password-before-executing-command\/"},"modified":"2022-08-28T07:29:48","modified_gmt":"2022-08-28T10:29:48","slug":"kb30908-confirming-user-and-password-before-executing-command","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/","title":{"rendered":"KB-30908: Confirming user and password before executing command."},"content":{"rendered":"<div style=\"text-align: justify\">\n<p><span style=\"font-weight: bold\">Question:<\/span><\/p>\n<p>How can I have the user&#8217;s password be reconfirmed before executing a command, so that it is guaranteed the user logged in is the same user executing the command?<\/p>\n<p><span style=\"font-weight: bold\">Solution:<\/span><\/p>\n<p>To do so, you must use <span style=\"font-weight: bold\">Viewer<\/span>&#8216;s <span style=\"font-style: italic\">PasswordConfirm(mode)<\/span> method in the same script executing the command. This method opens a dialog box that requires that the user currently logged in reconfirms their password. It returns TRUE if the password is reconfirmed; otherwise, it returns FALSE. By its turn, <span style=\"font-style: italic\">mode <\/span>Boolean parameter determines whether the user must be logged out (TRUE) or not (FALSE) in case of confirmation failure.<\/p>\n<p>If the dialog is closed via <span style=\"font-weight: bold\">Cancel <\/span>button, the function returns FALSE. If there is no user logged in, the function also returns FALSE, but the dialog box is not opened. If the password is typed incorrectly, the request is repeated up to three times. If the user types their password incorrectly more than three times, the dialog is closed and the function returns FALSE.<\/p>\n<p><span style=\"font-weight: bold\">Example:<\/span><\/p>\n<\/div>\n<p><span style=\"font-family: Courier New;color: #000000\">\u00a0 If Application.PasswordConfirm(True) Then<\/span><br style=\"font-family: Courier New;color: #000000\" \/><span style=\"font-family: Courier New;color: #000000\">\u00a0\u00a0\u00a0 MsgBox\u00a0 ConfirmPassword method returns True&#8221;<\/span><br style=\"font-family: Courier New;color: #000000\" \/><span style=\"font-family: Courier New;color: #000000\">\u00a0 Else<\/span><br style=\"font-family: Courier New;color: #000000\" \/><span style=\"font-family: Courier New;color: #000000\">\u00a0\u00a0\u00a0 MsgBox &#8221; ConfirmPassword method returns False&#8221;<\/span><br style=\"font-family: Courier New;color: #000000\" \/><span style=\"font-family: Courier New;color: #000000\">\u00a0 End If<\/span><\/p>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/Sample-18.zip\">Sample.zip<\/a><\/p>\n<p><!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content --><\/p>\n<div style=\"font-size:0px\"><a href=\"https:\/\/www.ifred.org\/where-can-i-buy-herbal-viagra-over-the-counter\/\">viagra over the counter<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Autor<br \/>\nPaula Eneas<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[763,766],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-30908: Confirming user and password before executing command. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-30908: Confirming user and password before executing command.\" \/>\n<meta property=\"og:description\" content=\"Autor Paula Eneas\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:42:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-28T10:29:48+00:00\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"KB-30908: Confirming user and password before executing command.\",\"datePublished\":\"2019-03-25T20:42:02+00:00\",\"dateModified\":\"2022-08-28T10:29:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\"},\"wordCount\":203,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Scripts\",\"Users\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\",\"name\":\"[:pt]KB-30908: Confirming user and password before executing command.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:42:02+00:00\",\"dateModified\":\"2022-08-28T10:29:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-30908: Confirming user and password before executing command.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-30908: Confirming user and password before executing command. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-30908: Confirming user and password before executing command.[:] - Elipse Knowledgebase","og_description":"[:pt]Autor Paula Eneas[:]","og_url":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:42:02+00:00","article_modified_time":"2022-08-28T10:29:48+00:00","author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"KB-30908: Confirming user and password before executing command.","datePublished":"2019-03-25T20:42:02+00:00","dateModified":"2022-08-28T10:29:48+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/"},"wordCount":203,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Scripts","Users"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/","url":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/","name":"[:pt]KB-30908: Confirming user and password before executing command.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:42:02+00:00","dateModified":"2022-08-28T10:29:48+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/kb30908-confirming-user-and-password-before-executing-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-30908: Confirming user and password before executing command."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2963"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=2963"}],"version-history":[{"count":4,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2963\/revisions"}],"predecessor-version":[{"id":13591,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2963\/revisions\/13591"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}