mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-06 12:20:45 +01:00
external app check
This commit is contained in:
@@ -2312,6 +2312,12 @@ IdentityFile /home/%s/.ssh/%s
|
||||
|
||||
website = Websites.objects.get(domain=self.domain)
|
||||
|
||||
if website.externalApp != data['externalApp']:
|
||||
data_ret = {'status': 0, 'error_message': 'External app mis-match.'}
|
||||
json_data = json.dumps(data_ret)
|
||||
return HttpResponse(json_data)
|
||||
|
||||
|
||||
command = 'echo "%s" | passwd --stdin %s' % (data['password'], data['externalApp'])
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user