| 
						
						
							
								
							
						
						
					 | 
					@ -37,9 +37,14 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        </div> | 
					 | 
					 | 
					        </div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        <small class="d-block text-right mt-3"> | 
					 | 
					 | 
					        <div class="mt-3"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            <a id="reload-btn" href="">Reload users</a> | 
					 | 
					 | 
					            <button type="button" class="btn btn-sm btn-link" onclick="updateRevisions();" title="Force all clients to fetch | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        </small> | 
					 | 
					 | 
					             new data next time they connect. Useful after restoring a backup to remove any stale data."> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                Force clients to resync | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            </button> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            <button type="button" class="btn btn-sm btn-primary float-right" onclick="reload();">Reload users</button> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        </div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    </div> | 
					 | 
					 | 
					    </div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <div id="invite-form-block" class="align-items-center p-3 mb-3 text-white-50 bg-secondary rounded shadow"> | 
					 | 
					 | 
					    <div id="invite-form-block" class="align-items-center p-3 mb-3 text-white-50 bg-secondary rounded shadow"> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -58,8 +63,9 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <div> | 
					 | 
					 | 
					        <div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <h6 class="text-white mb-3">Configuration</h6> | 
					 | 
					 | 
					            <h6 class="text-white mb-3">Configuration</h6> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <div class="small text-white mb-3"> | 
					 | 
					 | 
					            <div class="small text-white mb-3"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            NOTE: The settings here override the environment variables. Once saved, it's recommended to stop setting them  | 
					 | 
					 | 
					                NOTE: The settings here override the environment variables. Once saved, it's recommended to stop setting | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            to avoid confusion. This does not apply to the read-only section, which can only be set through the environment. | 
					 | 
					 | 
					                them to avoid confusion. This does not apply to the read-only section, which can only be set through the | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                environment. | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            </div> | 
					 | 
					 | 
					            </div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <form class="form accordion" id="config-form"> | 
					 | 
					 | 
					            <form class="form accordion" id="config-form"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                {{#each config}} | 
					 | 
					 | 
					                {{#each config}} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -213,6 +219,12 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            "Error deauthorizing sessions"); | 
					 | 
					 | 
					            "Error deauthorizing sessions"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return false; | 
					 | 
					 | 
					        return false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    function updateRevisions() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        _post("/admin/users/update_revision", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            "Success, clients will sync next time they connect", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            "Error forcing clients to sync"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        return false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    function inviteUser() { | 
					 | 
					 | 
					    function inviteUser() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        inv = $("#email-invite"); | 
					 | 
					 | 
					        inv = $("#email-invite"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        data = JSON.stringify({ "email": inv.val() }); | 
					 | 
					 | 
					        data = JSON.stringify({ "email": inv.val() }); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |