X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fregistrationview.py;h=f6d0291298acf5448aeb50965947f8b89129fe59;hb=f02e267b0fb472fdbbfa3c433ad5f5a74096e7f7;hp=7967a916c25bc93c7aca7461b96aa4a67f95c98b;hpb=7c531a6449b59e8e65f6bbc78e51992c882a1f03;p=unfold.git diff --git a/portal/registrationview.py b/portal/registrationview.py index 7967a916..f6d02912 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -142,8 +142,8 @@ class RegistrationView (FreeAccessView, ThemeView): ALLOWED_EXTENSIONS = ['.pub','.txt'] if file_extension not in ALLOWED_EXTENSIONS or not re.search(r'ssh-rsa',file_content): errors.append('Please upload a valid RSA public key.') - - user_request['private_key'] = None + # user_request['private_key'] can't be Null because all db fields are set as NOT NULL + user_request['private_key'] = "" user_request['public_key'] = file_content if not errors: