mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
further refoctor default render terminal
This commit is contained in:
@@ -18,8 +18,6 @@ import plogical.randomPassword
|
||||
# Create your views here.
|
||||
|
||||
def terminal(request):
|
||||
try:
|
||||
|
||||
password = plogical.randomPassword.generate_pass()
|
||||
|
||||
verifyPath = "/home/cyberpanel/" + str(randint(100000, 999999))
|
||||
@@ -47,10 +45,6 @@ def terminal(request):
|
||||
{'verifyPath': verifyPath, 'password': password})
|
||||
return proc.render()
|
||||
|
||||
except BaseException as msg:
|
||||
logging.writeToFile(str(msg))
|
||||
return redirect(loadLoginPage)
|
||||
|
||||
def restart(request):
|
||||
try:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user