Password Reset
CHOOSE YOUR SECRET!
And try to remember it, will you? 😉
<script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> jQuery(document).ready(function() {<!-- [et_pb_line_break_holder] --> jQuery("#resetform input").keyup(check_field)<!-- [et_pb_line_break_holder] --> jQuery("#resetform input").focusout(check_field)<!-- [et_pb_line_break_holder] --> // jQuery(".error-txt").hide();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> jQuery("#resetform").on('submit', function (event) {<!-- [et_pb_line_break_holder] --> var error = false;<!-- [et_pb_line_break_holder] --> for (a in matrix) {<!-- [et_pb_line_break_holder] --> if (jQuery("#resetform input[name="+a+"]").hasClass("error")) {<!-- [et_pb_line_break_holder] --> error = true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> else if (!jQuery("#resetform input[name="+a+"]").hasClass("ok")) {<!-- [et_pb_line_break_holder] --> jQuery("#resetform input[name="+a+"]").trigger("focusout");<!-- [et_pb_line_break_holder] --> error = true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if (error) {<!-- [et_pb_line_break_holder] --> event.preventDefault();<!-- [et_pb_line_break_holder] --> return false;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> return true;<!-- [et_pb_line_break_holder] --> })<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');<!-- [et_pb_line_break_holder] --> for(var i = 0; i < hashes.length; i++) {<!-- [et_pb_line_break_holder] --> hash = hashes[i].split('=');<!-- [et_pb_line_break_holder] --> jQuery("#resetform input[name="+hash[0]+"]").val(hash[1]);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var matrix = {<!-- [et_pb_line_break_holder] --> "password": {<!-- [et_pb_line_break_holder] --> "re": [<!-- [et_pb_line_break_holder] --> [/^.{8,98}$/, "too short"],<!-- [et_pb_line_break_holder] --> ],<!-- [et_pb_line_break_holder] --> "code": [<!-- [et_pb_line_break_holder] --> { "fn": function() { matrix["password2"]["value"] = ""; return true; }, "msg": "none" },<!-- [et_pb_line_break_holder] --> ],<!-- [et_pb_line_break_holder] --> "msgs": {<!-- [et_pb_line_break_holder] --> "required": "Password is required",<!-- [et_pb_line_break_holder] --> "too short": "Password must be at least 8 characters long",<!-- [et_pb_line_break_holder] --> },<!-- [et_pb_line_break_holder] --> "trigger": "password2",<!-- [et_pb_line_break_holder] --> },<!-- [et_pb_line_break_holder] --> "password2": {<!-- [et_pb_line_break_holder] --> "re": [<!-- [et_pb_line_break_holder] --> [/^.{5,}$/, ""],<!-- [et_pb_line_break_holder] --> ],<!-- [et_pb_line_break_holder] --> "code": [{<!-- [et_pb_line_break_holder] --> "fn": function() {<!-- [et_pb_line_break_holder] --> console.log("Validation:" + get_value("password") + " - " + get_value("password2"))<!-- [et_pb_line_break_holder] --> if (get_value("password") == get_value("password2")) {<!-- [et_pb_line_break_holder] --> return true;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> return false;<!-- [et_pb_line_break_holder] --> },<!-- [et_pb_line_break_holder] --> "msg": "missmatch"<!-- [et_pb_line_break_holder] --> }, ],<!-- [et_pb_line_break_holder] --> "msgs": {<!-- [et_pb_line_break_holder] --> "missmatch": "Passwords don't match, re-enter your password"<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> },<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->var timers = {};<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function check_field(event) {<!-- [et_pb_line_break_holder] --> console.log("test ");<!-- [et_pb_line_break_holder] --> if (matrix[this.name]) {<!-- [et_pb_line_break_holder] --> entry = matrix[this.name];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if (entry["timer"]) {<!-- [et_pb_line_break_holder] --> clearTimeout(entry["timer"]);<!-- [et_pb_line_break_holder] --> delete entry["timer"];<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> var self = this<!-- [et_pb_line_break_holder] --> if (event && event.type == "keyup") {<!-- [et_pb_line_break_holder] --> entry["timer"] = setTimeout(function() { run_check_field.apply(self, [event]) }, 1500);<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> run_check_field.apply(self, [event]);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function run_check_field(event) {<!-- [et_pb_line_break_holder] --> if (matrix[this.name]) {<!-- [et_pb_line_break_holder] --> entry = matrix[this.name]<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if (entry["value"] == this.value) {<!-- [et_pb_line_break_holder] --> return;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> entry["value"] = this.value;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> // Local Regexps<!-- [et_pb_line_break_holder] --> if (entry["re"]) {<!-- [et_pb_line_break_holder] --> for (x in entry["re"]) {<!-- [et_pb_line_break_holder] --> if (!RegExp(entry["re"][x][0]).test(this.value)) {<!-- [et_pb_line_break_holder] --> return field_error(this, entry["re"][x][1]);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> // Local code blocks<!-- [et_pb_line_break_holder] --> if (entry["code"]) {<!-- [et_pb_line_break_holder] --> for (x in entry["code"]) {<!-- [et_pb_line_break_holder] --> if (!entry["code"][x]["fn"].apply(this, [])) {<!-- [et_pb_line_break_holder] --> return field_error(this, entry["code"][x]["msg"]);<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> // Server Side Validation<!-- [et_pb_line_break_holder] --> if (entry["ssv"]) {<!-- [et_pb_line_break_holder] --> ssv_check(this, function(data) {<!-- [et_pb_line_break_holder] --> field_ok(this);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if (entry["trigger"] && get_value(entry["trigger"])) {<!-- [et_pb_line_break_holder] --> get_field(entry["trigger"]).trigger("focusout");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> }, function(data) {<!-- [et_pb_line_break_holder] --> field_error(this, data[this.name]["msg"]);<!-- [et_pb_line_break_holder] --> })<!-- [et_pb_line_break_holder] --> } else { <!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> field_ok(this);<!-- [et_pb_line_break_holder] --> if (entry["trigger"] && get_value(entry["trigger"])) {<!-- [et_pb_line_break_holder] --> get_field(entry["trigger"]).trigger("focusout");<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function get_value(name) {<!-- [et_pb_line_break_holder] --> return jQuery("#resetform input[name=" + name + "]").val();<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function get_field(name) {<!-- [et_pb_line_break_holder] --> return jQuery("#resetform input[name=" + name + "]")<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function field_error(field, error) {<!-- [et_pb_line_break_holder] --> if (matrix[field.name]["msgs"][error]) {<!-- [et_pb_line_break_holder] --> error = matrix[field.name]["msgs"][error]<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> if (error) {<!-- [et_pb_line_break_holder] --> jQuery("#" + field.name + "_msg").html(error);<!-- [et_pb_line_break_holder] --> jQuery("#" + field.name + "_msg").show();<!-- [et_pb_line_break_holder] --> jQuery("#" + field.name + "_msg").addClass("error-txt-active");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> jQuery(field).removeClass("ok");<!-- [et_pb_line_break_holder] --> jQuery(field).addClass("error");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function field_ok(field) {<!-- [et_pb_line_break_holder] --> jQuery("#" + field.name + "_msg").html(" ");<!-- [et_pb_line_break_holder] --> jQuery("#" + field.name + "_msg").removeClass("error-txt-active");<!-- [et_pb_line_break_holder] --> // jQuery("#" + field.name + "_msg").hide();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> jQuery(field).addClass("ok");<!-- [et_pb_line_break_holder] --> jQuery(field).removeClass("error");<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function ssv_check(self, ftrue, ffalse) {<!-- [et_pb_line_break_holder] -->} <!-- [et_pb_line_break_holder] --></script>
<form id="resetform" action="/reset/do" method="post" class="wpcf7-form" novalidate="novalidate"><!-- [et_pb_line_break_holder] --><input type="hidden" name="bearer"><!-- [et_pb_line_break_holder] --><input type="hidden" name="token"><!-- [et_pb_line_break_holder] --> <p><!-- [et_pb_line_break_holder] --> <label> Choose your password (required)<!-- [et_pb_line_break_holder] --> <br /><!-- [et_pb_line_break_holder] --> <span class="wpcf7-form-control-wrap choose-pass"><input type="password" name="password" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" /></span><!-- [et_pb_line_break_holder] --> <span id="password_msg" class="error-txt"></span><!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> </p><!-- [et_pb_line_break_holder] --> <p><!-- [et_pb_line_break_holder] --> <label> Enter your password again<!-- [et_pb_line_break_holder] --> <br /><!-- [et_pb_line_break_holder] --> <span class="wpcf7-form-control-wrap choose-pass"><input type="password" name="password2" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" /></span><!-- [et_pb_line_break_holder] --> <span id="password2_msg" class="error-txt"></span><!-- [et_pb_line_break_holder] --> </label><!-- [et_pb_line_break_holder] --> </p><!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> <p><!-- [et_pb_line_break_holder] --> <input type="submit" value="Reset password" class="wpcf7-form-control wpcf7-submit" style=' border-color: #95ecff; color: #ffffff !important;'/><!-- [et_pb_line_break_holder] --> </p><!-- [et_pb_line_break_holder] --> <div class="wpcf7-response-output wpcf7-display-none"></div><!-- [et_pb_line_break_holder] --></form>