added a sparkbooth section to gallery form, connection details reside there now.
This commit is contained in:
@@ -74,4 +74,15 @@ class Gallery extends Model
|
||||
|
||||
return $password;
|
||||
}
|
||||
|
||||
public function clearSparkboothConnection(): void
|
||||
{
|
||||
$this->forceFill([
|
||||
'upload_token_hash' => null,
|
||||
'upload_token_expires_at' => null,
|
||||
'sparkbooth_username' => null,
|
||||
'sparkbooth_password' => null,
|
||||
'upload_enabled' => false,
|
||||
])->save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user