Refactor users management (#6)
* Use asynchronous interface to set authorized clients list
This commit is contained in:
		@@ -126,14 +126,14 @@
 | 
			
		||||
        <div class="form-check">
 | 
			
		||||
            <label class="form-check-label">
 | 
			
		||||
                <input type="radio" class="form-check-input" name="grant_type"
 | 
			
		||||
                       value="all_clients" {% if u.authorized_clients== None %} checked="" {% endif %}>
 | 
			
		||||
                       value="all_clients" {% if u.granted_clients() == GrantedClients::AllClients %} checked="" {% endif %}>
 | 
			
		||||
                Grant all clients
 | 
			
		||||
            </label>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="form-check">
 | 
			
		||||
            <label class="form-check-label">
 | 
			
		||||
                <input type="radio" class="form-check-input" name="grant_type"
 | 
			
		||||
                       value="custom_clients" {% if u.authorized_clients !=None %} checked="checked" {% endif %}>
 | 
			
		||||
                       value="custom_clients" {% if u.granted_clients() != GrantedClients::AllClients %} checked="checked" {% endif %}>
 | 
			
		||||
                Manually specify allowed clients
 | 
			
		||||
            </label>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user