
	<style type="text/css">
    #display {
        float: right;
        margin-top: -44px;    
        margin-right: 10px;
        cursor: pointer;
    }

    input[type=password],input[type=text] {
        height:unset;
    }
</style>
<div id="resetPassword">

    <!--this check on the link key and user login/username-->
    
        <form id="resetPasswordForm" method="post" autocomplete="off" class="simontaxi_form">
            <div id="message"><p class="error">Sorry, that key does not appear to be valid.</p></div>
            <input type="hidden" id="rs_user_reset_password_nonce" name="rs_user_reset_password_nonce" value="0f5cc97bd8" /><input type="hidden" name="_wp_http_referer" value="/el/wp-json/wp/v2/pages/7884" />
            <input type="hidden" name="user_key" id="user_key" value="" autocomplete="off" />
            <input type="hidden" name="user_login" id="user_login" value="" autocomplete="off" />

            <div class="form-group">
                <label for="pass1">New password <font color="red"> * </font></label>
                <input type="password" name="pass1" id="pass1" class="input form-control" size="20" value="" autocomplete="off" />
                 <i onclick="show('pass1')" class="fa fa-eye-slash" id="display"></i>
            </div>
            <div class="form-group">
                <label for="pass2">Confirm new password<font color="red"> * </font></label>
                <input type="password" name="pass2" id="pass2" class="input form-control" size="20" value="" autocomplete="off" />
                <i onclick="show('pass2')" class="fa fa-eye-slash" id="display"></i>
            </div>

            <p class="description indicator-hint">Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! &quot; ? $ % ^ &amp; ).</p>

            <br class="clear" />

                        <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="btn btn-primary center-block btn-mobile" value="Reset Password" />
            </p>
        </form>
    </div>
    <script>
    jQuery(document).ready(function( $ ) {
        // for reset password
        $("form#resetPasswordForm").submit(function(){
            var submit = $("div#resetPassword #submit"),
                preloader = $("div#resetPassword #preloader"),
                message    = $("div#message"),
                contents = {
                    action:     'reset_pass',
                    nonce:         this.rs_user_reset_password_nonce.value,
                    pass1:        this.pass1.value,
                    pass2:        this.pass2.value,
                    user_key:    this.user_key.value,
                    user_login:    this.user_login.value
                };

            // disable button onsubmit to avoid double submision
            submit.attr("disabled", "disabled").addClass( 'disabled' );

            // Display our pre-loading
            preloader.css({'visibility':'visible'});

            $.post( 'https://speditiondigital.de/wp-admin/admin-ajax.php', contents, function( data ){
                submit.removeAttr("disabled").removeClass( 'disabled' );

                // hide pre-loader
                preloader.css({'visibility':'hidden'});
				
				$( '#pass1' ).val( '' );
				$( '#pass2' ).val( '' );

                // display return data
                message.html( data );
            });

            return false;
        });

    });
    </script>
<script type="text/javascript">
    function show(a) {
        var x=document.getElementById(a);
        var c=x.nextElementSibling

        if (x.getAttribute('type') == "password") {
            c.removeAttribute("class");
            c.setAttribute("class","fa fa-eye");
            x.removeAttribute("type");
            x.setAttribute("type","text");
        } 
        else {
            x.removeAttribute("type");
            x.setAttribute('type','password');
            c.removeAttribute("class");
            c.setAttribute("class","fa fa-eye-slash");
        }
    }
</script>   {"id":7884,"date":"2020-09-28T19:49:49","date_gmt":"2020-09-28T17:49:49","guid":{"rendered":"https:\/\/speditiondigital.de\/?page_id=7884"},"modified":"2020-09-28T19:52:47","modified_gmt":"2020-09-28T17:52:47","slug":"resetpassword","status":"publish","type":"page","link":"https:\/\/speditiondigital.de\/el\/transportpreis-und-frachtkosten-rechner\/resetpassword\/","title":{"rendered":"Passwort zur\u00fccksetzen"},"content":{"rendered":"\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-av_one_full-79ff81c021393065cee878051452f6a6\">\n.flex_column.av-av_one_full-79ff81c021393065cee878051452f6a6{\n-webkit-border-radius:0px 0px 0px 0px;\n-moz-border-radius:0px 0px 0px 0px;\nborder-radius:0px 0px 0px 0px;\npadding:0px 0px 0px 0px;\n}\n<\/style>\n<div  class='flex_column av-av_one_full-79ff81c021393065cee878051452f6a6 av_one_full  avia-builder-el-0  avia-builder-el-no-sibling  first flex_column_div av-zero-column-padding  '     ><section  class='av_textblock_section av-kfmttrgl-ef099e59fdd11ccc1bca958ade66f60a '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock'  itemprop=\"text\" ><p style=\"text-align: center;\"><\/p>\n<\/div><\/section><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":7787,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"acf":[],"_links":{"self":[{"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/pages\/7884"}],"collection":[{"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/comments?post=7884"}],"version-history":[{"count":2,"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/pages\/7884\/revisions"}],"predecessor-version":[{"id":7892,"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/pages\/7884\/revisions\/7892"}],"up":[{"embeddable":true,"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/pages\/7787"}],"wp:attachment":[{"href":"https:\/\/speditiondigital.de\/el\/wp-json\/wp\/v2\/media?parent=7884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}