daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest May 23rd, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6.   <title>Sign In with Auth0</title>
  7.   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8.   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  9.   <link rel="stylesheet" href="https://e-uat.connectedcorrections.com/global/css/screen.css">
  10. </head>
  11.   <style>
  12.     body, html {
  13.       height: 100%;
  14.       background-color: #525bad;
  15.     }
  16.   </style>
  17. <body>
  18.   <div class="gatetime-recipient-login">
  19.     <nav class="banner" role="navigation">
  20.         <div class="banner-wrap container">
  21.             <a href="/#" class="logo-wrap">
  22.                 <span class="logo"></span>
  23.                 <span class="label-beta"></span>
  24.             </a>
  25.         </div>
  26.     </nav>
  27.   <div class="row" id="LoginView">
  28.  
  29.     <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 content-wrap">
  30.  
  31.         <div class="card login">
  32.             <form onsubmit="return false;" method="post">
  33.                 <div style="display: none" class="alert alert-danger" role="alert" id="error-message"></div>
  34.                 <div class="form-group">
  35.                     <div>
  36.                         <input type="email" name="email" id="email" class="form-control field-email" placeholder="Username">
  37.                     </div>
  38.                 </div>
  39.                 <div class="form-group">
  40.                     <div>
  41.                         <input type="password" name="password" id="password" class="form-control field-password" placeholder="Password" maxlength="16">
  42.                     </div>
  43.                 </div>
  44.                 <div class="form-group password-help">
  45.                     <div class="password-help fadeInDown">
  46.                         <ul></ul>
  47.                     </div>
  48.                 </div>
  49.                 <div class="form-group">
  50.                     <div class="btn-group">
  51.                         <button type="submit" class="btn btn-primary btn-login" id="btn-login"><span class="spinner-icon"></span>Log In</button>
  52.                     </div>
  53.                     <div class="form-link-wrap">
  54.                         <a href="#forgotpassword" class="login">Forgot Password</a>
  55.                     </div>
  56.                 </div>
  57.             </form>
  58.         </div>
  59.   </div>
  60.   </div>
  61.  
  62. </div>
  63.  
  64.   <!--[if IE 8]>
  65.   <script src="//cdnjs.cloudflare.com/ajax/libs/ie8/0.2.5/ie8.js"></script>
  66.   <![endif]-->
  67.  
  68.   <!--[if lte IE 9]>
  69.   <script src="https://cdn.auth0.com/js/polyfills/1.0/base64.min.js"></script>
  70.   <script src="https://cdn.auth0.com/js/polyfills/1.0/es5-shim.min.js"></script>
  71.   <![endif]-->
  72.  
  73.   <script src="https://cdn.auth0.com/js/auth0/9.2/auth0.min.js"></script>
  74.   <script src="https://cdn.auth0.com/js/polyfills/1.0/object-assign.min.js"></script>
  75.   <script>
  76.     window.addEventListener('load', function() {
  77.  
  78.       var config = JSON.parse(
  79.         decodeURIComponent(escape(window.atob('@@config@@')))
  80.       );
  81.  
  82.       var params = Object.assign({
  83.         domain: config.auth0Domain,
  84.         clientID: config.clientID,
  85.         redirectUri: config.callbackURL,
  86.         responseType: 'code'
  87.       }, config.internalOptions);
  88.  
  89.       var webAuth = new auth0.WebAuth(params);
  90.  
  91.       var databaseConnection = 'apdscc-dev-mongo';
  92.  
  93.       function login(e) {
  94.         e.preventDefault();
  95.         var username = document.getElementById('email').value;
  96.         var password = document.getElementById('password').value;
  97.         webAuth.login({
  98.           realm: databaseConnection,
  99.           username: username,
  100.           password: password
  101.         }, function(err) {
  102.           if (err) displayError(err);
  103.         });
  104.       }
  105.  
  106.       function displayError(err) {
  107.         var errorMessage = document.getElementById('error-message');
  108.         errorMessage.innerHTML = err.description;
  109.         errorMessage.style.display = 'block';
  110.       }
  111.  
  112.       document.getElementById('btn-login').addEventListener('click', login);
  113.     });
  114.   </script>
  115. </body>
  116. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top