mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-27 16:26:51 +01:00 
			
		
		
		
	 f9fc3f4370
			
		
	
	
		f9fc3f4370
		
			
		
	
	
	
	
		
			
			Main difference is permissions, cleaner UI for normal users, and account keys use permissions assigned to servers and subusers while application keys use R/W ACLs stored in the key table.
		
			
				
	
	
		
			24 lines
		
	
	
		
			525 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			525 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Pterodactyl\Http\Requests\Base;
 | |
| 
 | |
| use Pterodactyl\Http\Requests\FrontendUserFormRequest;
 | |
| 
 | |
| class StoreAccountKeyRequest extends FrontendUserFormRequest
 | |
| {
 | |
|     /**
 | |
|      * Rules to validate the request input aganist before storing
 | |
|      * an account API key.
 | |
|      *
 | |
|      * @return array
 | |
|      */
 | |
|     public function rules()
 | |
|     {
 | |
|         return [
 | |
|             'memo' => 'required|nullable|string|max:500',
 | |
|             'allowed_ips' => 'present',
 | |
|             'allowed_ips.*' => 'sometimes|string',
 | |
|         ];
 | |
|     }
 | |
| }
 |