{"id":3560,"date":"2021-12-14T10:58:37","date_gmt":"2021-12-14T07:58:37","guid":{"rendered":"https:\/\/iskmarket.com\/login\/"},"modified":"2022-08-27T17:47:22","modified_gmt":"2022-08-27T14:47:22","slug":"login","status":"publish","type":"page","link":"https:\/\/iskmarket.com\/de\/login\/","title":{"rendered":"Login"},"content":{"rendered":"<section class=\"block-auth\" id=\"login\">\n    <div class=\"container\">\n        <h1>LOGIN<\/h1>\n        <form id=\"form-auth\" @submit.prevent=\"login( $event )\" novalidate>\n            <div class=\"input-wrap\">\n                <div class=\"input-label\">Anmelden<\/div>\n                <input type=\"email\" name=\"login\" id=\"authLogin\" v-model=\"form.login\">\n                <label id=\"authLogin-error\" class=\"error\" v-html=\"error_msg.login\"><\/label>\n            <\/div>\n            <div class=\"input-wrap\">\n                <div class=\"input-label\">Passwort<\/div>\n                <input type=\"password\" name=\"password\" id=\"authPassword\" v-model=\"form.password\" required>\n                <label id=\"authPassword-error\" class=\"error\" v-html=\"error_msg.password\"><\/label>\n\n            <\/div>\n            <div class=\"btn-wrap\">\n                <button class=\"btn-reg\" type=\"submit\" data-redirect=\"\/de\/\">\n                    <span>Login<\/span>\n                    <svg width=\"355\" height=\"91\" viewBox=\"0 0 355 91\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                        <path d=\"M0 0h355v71l-11.123 10-11.124 10H0V0z\" fill=\"#E9B43E\" \/>\n                    <\/svg>\n                <\/button>\n                <div class=\"btn-link-wrap\">\n                    <a href=\"#\" data-href=\"\/de\/registration\/\" class=\"btn-link\">Registration<\/a>\n                <\/div>\n            <\/div>\n                    <\/form>\n    <\/div>\n<\/section>\n<script>\n    const Login = {\n        data() {\n            return {\n                errors: JSON.parse( `{\"required_text\":\"Dieses Feld ist erforderlich\",\"not_found\":\"Benutzer-E-Mail oder Passwort stimmt nicht \\u00fcberein\"}` ),\n                error_msg: {\n                    login: '',\n                    password: '',\n                },\n                form: {\n                    login: '',\n                    password: '',\n                }\n            }\n        },\n        methods: {\n            clearErrors() {\n                for ( let key in this.error_msg ) {\n                    this.error_msg[ key ] = '';\n                }\n            },\n            login( event ) {\n\n                if ( this.form.login.length < 1 ) {\n                    this.error_msg.login = this.errors.required_text;\n                    return;\n                }\n\n                if ( this.form.password.length < 1 ) {\n                    this.error_msg.password = this.errors.required_text;\n                    return;\n                }\n\n                this.clearErrors();\n\n                let button = event.target.querySelector( '[type=\"submit\"]' );\n                button.classList.add( 'state-loading' );\n\n                let formData = new FormData( event.target );\n                formData.append( 'action', 'isk_login' );\n\n                iskFetch( formData ).then( data => {\n                    button.classList.remove( 'state-loading' );\n\n                    if ( data.error ) {\n                        this.error_msg.login = this.errors[ data.error ];\n                        this.error_msg.password = this.errors[ data.error ];\n                    } else if ( data.status === 'ok' ) {\n                        window.location.href = document.querySelector( '[data-redirect]' ).dataset.redirect;\n                    }\n                } );\n            }\n        },\n    };\n    let loginForm = Vue.createApp( Login );\n    loginForm.mount( '#login' );\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-3560","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Login - IskMarket<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Login - IskMarket\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iskmarket.com\/de\/login\/\" \/>\n<meta property=\"og:site_name\" content=\"IskMarket\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-27T14:47:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iskmarket.com\/de\/login\/\",\"url\":\"https:\/\/iskmarket.com\/de\/login\/\",\"name\":\"Login - IskMarket\",\"isPartOf\":{\"@id\":\"https:\/\/iskmarket.com\/#website\"},\"datePublished\":\"2021-12-14T07:58:37+00:00\",\"dateModified\":\"2022-08-27T14:47:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/iskmarket.com\/de\/login\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iskmarket.com\/de\/login\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iskmarket.com\/de\/login\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Isk Market\",\"item\":\"https:\/\/iskmarket.com\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Login\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iskmarket.com\/#website\",\"url\":\"https:\/\/iskmarket.com\/\",\"name\":\"IskMarket\",\"description\":\"Eve ISK, ships, characters, P.L.E.X and more\",\"publisher\":{\"@id\":\"https:\/\/iskmarket.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iskmarket.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/iskmarket.com\/#organization\",\"name\":\"IskMarket\",\"url\":\"https:\/\/iskmarket.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/iskmarket.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/iskmarket.com\/wp-content\/uploads\/2021\/12\/logo.png\",\"contentUrl\":\"https:\/\/iskmarket.com\/wp-content\/uploads\/2021\/12\/logo.png\",\"width\":180,\"height\":49,\"caption\":\"IskMarket\"},\"image\":{\"@id\":\"https:\/\/iskmarket.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Login - IskMarket","robots":{"index":"noindex","follow":"follow"},"og_locale":"de_DE","og_type":"article","og_title":"Login - IskMarket","og_url":"https:\/\/iskmarket.com\/de\/login\/","og_site_name":"IskMarket","article_modified_time":"2022-08-27T14:47:22+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iskmarket.com\/de\/login\/","url":"https:\/\/iskmarket.com\/de\/login\/","name":"Login - IskMarket","isPartOf":{"@id":"https:\/\/iskmarket.com\/#website"},"datePublished":"2021-12-14T07:58:37+00:00","dateModified":"2022-08-27T14:47:22+00:00","breadcrumb":{"@id":"https:\/\/iskmarket.com\/de\/login\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iskmarket.com\/de\/login\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iskmarket.com\/de\/login\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Isk Market","item":"https:\/\/iskmarket.com\/de\/"},{"@type":"ListItem","position":2,"name":"Login"}]},{"@type":"WebSite","@id":"https:\/\/iskmarket.com\/#website","url":"https:\/\/iskmarket.com\/","name":"IskMarket","description":"Eve ISK, ships, characters, P.L.E.X and more","publisher":{"@id":"https:\/\/iskmarket.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iskmarket.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/iskmarket.com\/#organization","name":"IskMarket","url":"https:\/\/iskmarket.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/iskmarket.com\/#\/schema\/logo\/image\/","url":"https:\/\/iskmarket.com\/wp-content\/uploads\/2021\/12\/logo.png","contentUrl":"https:\/\/iskmarket.com\/wp-content\/uploads\/2021\/12\/logo.png","width":180,"height":49,"caption":"IskMarket"},"image":{"@id":"https:\/\/iskmarket.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/pages\/3560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/comments?post=3560"}],"version-history":[{"count":3,"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/pages\/3560\/revisions"}],"predecessor-version":[{"id":3563,"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/pages\/3560\/revisions\/3563"}],"wp:attachment":[{"href":"https:\/\/iskmarket.com\/de\/wp-json\/wp\/v2\/media?parent=3560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}