basics of a password page on startup
This commit is contained in:
		
							
								
								
									
										17
									
								
								api/settings.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								api/settings.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
<?php
 | 
			
		||||
require 'Database.php';
 | 
			
		||||
 | 
			
		||||
$conn = Database::getInstance()->getConnection();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if (isset($_POST['action'])) {
 | 
			
		||||
    $action = $_POST['action'];
 | 
			
		||||
    switch ($action) {
 | 
			
		||||
        case "isPasswordNeeded":
 | 
			
		||||
            echo '{"password": true}';
 | 
			
		||||
            break;
 | 
			
		||||
        case "checkPassword":
 | 
			
		||||
 | 
			
		||||
            break;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user