Begin implementation of new daemon authentication scheme
This commit is contained in:
parent
8722571037
commit
906a699ee2
23 changed files with 796 additions and 145 deletions
app/Models
|
@ -42,13 +42,6 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
|
|||
*/
|
||||
protected $table = 'subusers';
|
||||
|
||||
/**
|
||||
* The attributes excluded from the model's JSON form.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = ['daemonSecret'];
|
||||
|
||||
/**
|
||||
* Fields that are not mass assignable.
|
||||
*
|
||||
|
@ -72,7 +65,6 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
|
|||
protected static $applicationRules = [
|
||||
'user_id' => 'required',
|
||||
'server_id' => 'required',
|
||||
'daemonSecret' => 'required',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -81,7 +73,6 @@ class Subuser extends Model implements CleansAttributes, ValidableContract
|
|||
protected static $dataIntegrityRules = [
|
||||
'user_id' => 'numeric|exists:users,id',
|
||||
'server_id' => 'numeric|exists:servers,id',
|
||||
'daemonSecret' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue