<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../Site.xsl"?>
<?xml-stylesheet type="text/css" href="../RenderFail.css"?>

<RDWAPage 
    helpurl="http://go.microsoft.com/fwlink/?LinkId=141038" 
    workspacename="Password&#32;Reset&#32;Utility" 
    baseurl="https://alterasenha.positivotecnologia.com.br/RDWeb/Pages/en-US/"
    >
  <RenderFailureMessage>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=unicode"/>
            <title>Error: Unable to display RD Web Access</title>
        </head>
        <body>
            <h1>Error: Unable to display RD Web Access</h1>
            <p>An unexpected error has occurred that is preventing this page from being displayed correctly.</p>
            <p>Viewing this page in Internet Explorer with the Enhanced Security Configuration enabled can cause such an error.</p>
            <p>Please try loading this page without the Enhanced Security Configuration enabled. If this error continues to be displayed, please contact your administrator.</p>
        </body>
    </html> 
  </RenderFailureMessage>

  <HTMLMainContent>
	<script src='https://www.google.com/recaptcha/api.js?hl=en-US'></script>  
	<script>
		var reCaptcha = false;		
	</script>
	
      <form id="FrmLogin" name="FrmLogin" action="password.aspx" method="post">

        <table width="350" border="0" align="center" cellpadding="0" cellspacing="0">

            <tr>
            <td height="20">&#160;</td>
            </tr>

            <tr>
            <td>
                <table width="350" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="180" align="right">POSITIVO\User Name:</td>
                    <td width="7"></td>
                    <td align="right">
                    <input name="DomainUserName" type="text" id="DomainUserName" onkeyup="check()" class="textInputField" size="25" autocomplete="off" />
                    </td>
                </tr>
                </table>
            </td>
            </tr>

            <tr>
            <td height="7"></td>
            </tr>

            <tr>
            <td>
                <table width="350" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="180" align="right">Current password:</td>
                    <td width="7"></td>
                    <td align="right">
                    <input name="UserPass" type="password" id="UserPass" onkeyup="check()" class="textInputField" size="25" autocomplete="off" />
                    </td>
                </tr>
                </table>
            </td>
            </tr>

            <tr>
            <td height="7"></td>
            </tr>

            <tr>
            <td>
                <table width="350" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="180" align="right">New password:</td>
                    <td width="7"></td>
                    <td align="right">
                    <!-- <input name="NewUserPass" type="password" id="NewUserPass" onkeyup="check()" class="textInputField" size="25" autocomplete="off" /> -->
                    <div id="newpassword"></div>
                    </td>
                </tr>
                </table>
            </td>
            </tr>
            
            <tr>
            <td height="7"></td>
            </tr>

            <tr>
            <td>
                <table width="350" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="180" align="right">Confirm new password:</td>
                    <td width="7"></td>
                    <td align="right">
                    <input name="ConfirmNewUserPass" type="password" id="ConfirmNewUserPass" onkeyup="check()" class="textInputField" size="25" autocomplete="off" />
                    </td>
                </tr>
                </table>
            </td>
            </tr>

            <tr>
            <td height="20"></td>
            </tr>
			
			<tr>
				<td align = "right">
				<div class="g-recaptcha" data-sitekey="6Ld1LTAUAAAAAJ95YXxEK2raNVG-kRYmN0FnUBis"  data-callback="correctCaptcha"></div>
				</td>
			</tr>

    
            <tr id="tr4" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Your password cannot be changed. Please contact your administrator for assistance.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="tr2" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Please enter a new password.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="tr5" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Your new password does not meet the length, complexity, or history requirements of your domain. Try choosing a different new password.</span></td>
                </tr>
                </table>
            </td>
            </tr>
    
    
            <tr id="tr3" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">The entered passwords do not match.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr id="tr1" style="display:none" >
            <td>
                <table align = "center">
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">Your password has been successfully changed.</span></td>
                </tr>
                <tr>
                    <td height="10">&#160;</td>
                </tr>
                <tr>
                    <td align = "center"><input type="button" class="formButton" id="OK" value="OK" onClick="window.location='login.aspx'"/></td>
                </tr>  

                </table>
            </td>
            </tr>

    
            <tr id="trErrorIncorrectCredentials" style="display:none" >
            <td>
                <table>
                <tr>
                    <td height="20">&#160;</td>
                </tr>
                <tr>
                    <td><span class="wrng">The user name or password that you entered is not valid. Try typing it again.</span></td>
                </tr>
                </table>
            </td>
            </tr>

    
            <tr>
            <td height="20">&#160;</td>
            </tr>
            <tr id="trButtons" style="display:" >
            <td align="right"><label><input type="submit" class="formButton" id="btnSignIn" value="Submit" /></label><label><input type="button" class="formButton" id="Cancel" value="Cancel" onClick="window.location='login.aspx'"/></label>
            </td>
            </tr>


            <tr>
            <td height="30">&#160;</td>
            </tr>

        </table>

      </form>
  
	<script>
		document.getElementById("btnSignIn").disabled = true;
		
		var correctCaptcha = function(response) {									
			reCaptcha = true;
			check();
		};
		
		function check(){
			
			if(document.getElementById("DomainUserName").value.length == 0 ||
				document.getElementById("UserPass").value.length == 0 ||
				document.getElementById("NewUserPass").value.length == 0 ||
				document.getElementById("ConfirmNewUserPass").value.length == 0 ||
				reCaptcha==false){					
				document.getElementById("btnSignIn").disabled = true;
			} else{				
				document.getElementById("btnSignIn").disabled = false;
			}
			
        }
        
        
        $('#newpassword').strength_meter({
            inputClass: 'textInputField',
            idioma: 'enUS'
        });
	</script>
  </HTMLMainContent>
</RDWAPage>
