further refoctor default render terminal

This commit is contained in:
Usman Nasir
2021-03-06 11:45:53 +05:00
parent 5472c88710
commit 0d5692ea1d

View File

@@ -18,8 +18,6 @@ import plogical.randomPassword
# Create your views here. # Create your views here.
def terminal(request): def terminal(request):
try:
password = plogical.randomPassword.generate_pass() password = plogical.randomPassword.generate_pass()
verifyPath = "/home/cyberpanel/" + str(randint(100000, 999999)) verifyPath = "/home/cyberpanel/" + str(randint(100000, 999999))
@@ -47,10 +45,6 @@ def terminal(request):
{'verifyPath': verifyPath, 'password': password}) {'verifyPath': verifyPath, 'password': password})
return proc.render() return proc.render()
except BaseException as msg:
logging.writeToFile(str(msg))
return redirect(loadLoginPage)
def restart(request): def restart(request):
try: try: