Proper Oauth for Google Home
This commit is contained in:
		@@ -18,9 +18,9 @@
 | 
			
		||||
<meta charset="UTF-8">
 | 
			
		||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
			
		||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
 | 
			
		||||
<link rel="stylesheet" href="./css/main.css?v2">
 | 
			
		||||
<link rel="stylesheet" href="./css/font-awesome.min.css">
 | 
			
		||||
<link rel="stylesheet" href="./css/modal.css">
 | 
			
		||||
<link rel="stylesheet" href="./css/pre.css">
 | 
			
		||||
<link rel="stylesheet" href="./css/loading.css">
 | 
			
		||||
<link rel="stylesheet" href="./css/override.css">
 | 
			
		||||
<link rel="stylesheet" href="<?php echo $BASEDIR; ?>public/css/main.css?v2">
 | 
			
		||||
<link rel="stylesheet" href="<?php echo $BASEDIR; ?>public/css/font-awesome.min.css">
 | 
			
		||||
<link rel="stylesheet" href="<?php echo $BASEDIR; ?>public/css/modal.css">
 | 
			
		||||
<link rel="stylesheet" href="<?php echo $BASEDIR; ?>public/css/pre.css">
 | 
			
		||||
<link rel="stylesheet" href="<?php echo $BASEDIR; ?>public/css/loading.css">
 | 
			
		||||
<link rel="stylesheet" href="<?php echo $BASEDIR; ?>public/css/override.css">
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								app/views/templates/part/oauthLoginForm.phtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								app/views/templates/part/oauthLoginForm.phtml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
<div class="modal-container">
 | 
			
		||||
    <div class="modal">
 | 
			
		||||
        <h4 class="mb-4">Login</h4>
 | 
			
		||||
        <form method="post">
 | 
			
		||||
            <div class="field">
 | 
			
		||||
                <div class="label">Name:</div>
 | 
			
		||||
                <input class="input" type="text" name="username" placeholder="Jméno.."/>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="field">
 | 
			
		||||
                <div class="label">Password:</div>
 | 
			
		||||
                <input class="input" type="password" name="password" placeholder="Heslo.."/>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
				<input type="hidden" name="responseType" value="<?php echo $RESPONSETYPE; ?>"/>
 | 
			
		||||
				<input type="hidden" name="redirectUrl" value="<?php echo $REDIRECTURL; ?>"/>
 | 
			
		||||
				<input type="hidden" name="clientId" value="<?php echo $CLIENTID; ?>"/>
 | 
			
		||||
				<input type="hidden" name="state" value="<?php echo $STATE; ?>"/>
 | 
			
		||||
 | 
			
		||||
            <input type="submit" class="button" name="login" value="Login"/>
 | 
			
		||||
        </form>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
							
								
								
									
										16
									
								
								app/views/templates/part/oauthLoginOta.phtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								app/views/templates/part/oauthLoginOta.phtml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<div class="modal-container">
 | 
			
		||||
    <div class="modal">
 | 
			
		||||
        <h4 class="mb-4">OTA</h4>
 | 
			
		||||
        <form method="post">
 | 
			
		||||
            <input type="hidden" name="otaSecret" value="<?php echo $OTA; ?>"/>
 | 
			
		||||
            <div class="field">
 | 
			
		||||
                <div class="label">Code:</div>
 | 
			
		||||
					 <?php
 | 
			
		||||
 | 
			
		||||
					 ?>
 | 
			
		||||
                <input class="input" type="text" name="otaCode" placeholder=""/>
 | 
			
		||||
            </div>
 | 
			
		||||
            <input type="submit" class="button" name="login" value="Login"/>
 | 
			
		||||
        </form>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user