
<%@ Page Language="C#" %>	
<script runat="server">
  string GetPath()
  {
    string path = "";
    string[] urlSegments = HttpContext.Current.Request.Url.Segments;
    
    for (int i = 0; i < urlSegments.Length - 1; i++) {
      path += urlSegments[i];
    }
    
    return path.Substring(1);
  }
</script>
<!doctype html>
<html>
<head>
  <title>Password Server</title>
  <base href="/<%= GetPath() %>">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, user-scalable=no">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;lang=en"/>
  <link id="favicon" rel="icon" type="image/png" href="./assets/favicon.png"/>
  <!--[if IE]>
  <link rel="shortcut icon" type="image/x-icon" href="./assets/favicon.ico"/>
  <![endif]-->
  <!-- DO NOT MODIFY OR REMOVE THE NEXT LINE; IT'S NECESSARY FOR THE BUILD PROD -->
  <style>
@font-face {
     font-family: 'devolutions-icons';
     src:  url('<%= GetPath() %>/assets/fonts/devolutions-icons.eot?g1lk3t');
     src:  url('<%= GetPath() %>/assets/fonts/devolutions-icons.eot?g1lk3t#iefix') format('embedded-opentype'),
     url('<%= GetPath() %>/assets/fonts/devolutions-icons.ttf?g1lk3t') format('truetype'),
     url('<%= GetPath() %>/assets/fonts/devolutions-icons.woff?g1lk3t') format('woff'),
     url('<%= GetPath() %>/assets/fonts/devolutions-icons.svg?g1lk3t#devolutions-icons') format('svg');
     font-weight: normal;
     font-style: normal;
   }</style>
  <script>
    // For BE
    var storageKey = ((location.hostname === 'localhost') ? 'dvls' : '<%= GetPath() %>').toLowerCase();
    (function () {
      if (window.self !== window.top) {
        var storage = JSON.parse(localStorage.getItem(storageKey));
        if (storage._tokenId && storage._tokenId.length > 0) {
          var req = new XMLHttpRequest();
          req.addEventListener("load", function () {
            if (this.status === 200) {
              var jsonResponse = JSON.parse(this.responseText);
              if (jsonResponse === true) {
                window.parent.postMessage({
                  tokenId: storage._tokenId,
                  sessionKey: storage._sessionKey
                }, '*');
              }
            }
          });
          req.open("GET", "api/is-logged");
          req.setRequestHeader('tokenId', storage._tokenId);
          req.send();
        }
      }
    }());
  </script>
<link rel="stylesheet" href="styles.3fef6f670fc47464a469.css"></head>
<body>
<asm-app>
  <div id="dvl-loading" class="loader loader-10x"><i class="dvl-icon dvl-icon-logo-dvls"></i></div>
</asm-app>
<script type="text/javascript" src="runtime.9006edf4a63390a96eb5.js"></script><script type="text/javascript" src="polyfills.d0a9ec4f604e92f7b2f9.js"></script><script type="text/javascript" src="scripts.bcf8ab9ac4c99a673f60.js"></script><script type="text/javascript" src="main.3ff6b1193ecad42d585d.js"></script></body>
</html>
