mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-07-14 22:42:09 +02:00
FTP: path normalization, post-create directory edit, enable/disable
- Resolve FTP home paths without duplicating /home/domain; support absolute paths under site home - Add changeFTPDirectory API and list UI; improve create form path help - Add setFTPAccountStatus (Status 0/1) with Enable/Disable on list page - Pure-FTPd MySQL: require Status='1' for authentication in install templates - Plugin signals for change directory and account status
This commit is contained in:
@@ -33,4 +33,20 @@ class pluginManager:
|
||||
|
||||
@staticmethod
|
||||
def postChangePassword(request, response):
|
||||
return pluginManagerGlobal.globalPlug(request, postChangePassword, response)
|
||||
return pluginManagerGlobal.globalPlug(request, postChangePassword, response)
|
||||
|
||||
@staticmethod
|
||||
def preChangeFTPDirectory(request):
|
||||
return pluginManagerGlobal.globalPlug(request, preChangeFTPDirectory)
|
||||
|
||||
@staticmethod
|
||||
def postChangeFTPDirectory(request, response):
|
||||
return pluginManagerGlobal.globalPlug(request, postChangeFTPDirectory, response)
|
||||
|
||||
@staticmethod
|
||||
def preSetFTPAccountStatus(request):
|
||||
return pluginManagerGlobal.globalPlug(request, preSetFTPAccountStatus)
|
||||
|
||||
@staticmethod
|
||||
def postSetFTPAccountStatus(request, response):
|
||||
return pluginManagerGlobal.globalPlug(request, postSetFTPAccountStatus, response)
|
||||
Reference in New Issue
Block a user