mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
Merge pull request #528 from catborise/master
fix setting.py.template & decodestring convert
This commit is contained in:
commit
2db7a4fa27
2 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,7 @@ def validate_ssh_key(key):
|
||||||
username = array[2]
|
username = array[2]
|
||||||
# must have only valid rsa-ssh key characters ie binascii characters
|
# must have only valid rsa-ssh key characters ie binascii characters
|
||||||
try:
|
try:
|
||||||
data = base64.decodestring(string)
|
data = base64.decodebytes(string)
|
||||||
except binascii.Error:
|
except binascii.Error:
|
||||||
return False
|
return False
|
||||||
# unpack the contents of data, from data[:4] , property of ssh key .
|
# unpack the contents of data, from data[:4] , property of ssh key .
|
||||||
|
|
|
@ -22,7 +22,6 @@ INSTALLED_APPS = [
|
||||||
"django.contrib.sessions",
|
"django.contrib.sessions",
|
||||||
"django.contrib.messages",
|
"django.contrib.messages",
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
"rest_framework",
|
|
||||||
"django_bootstrap5",
|
"django_bootstrap5",
|
||||||
"django_icons",
|
"django_icons",
|
||||||
"django_otp",
|
"django_otp",
|
||||||
|
|
Loading…
Reference in a new issue