SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 6be03b43 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

invalidate orcid if manually submitted by user

parent 4002b66d
No related branches found
No related tags found
No related merge requests found
...@@ -444,6 +444,8 @@ class UpdatePersonalDataForm(forms.ModelForm): ...@@ -444,6 +444,8 @@ class UpdatePersonalDataForm(forms.ModelForm):
def save(self): def save(self):
self.instance.profile.title = self.cleaned_data["title"] self.instance.profile.title = self.cleaned_data["title"]
self.instance.profile.acad_field = self.cleaned_data["acad_field"] self.instance.profile.acad_field = self.cleaned_data["acad_field"]
if self.cleaned_data["orcid_id"] != self.instance.profile.orcid_id:
self.instance.profile.orcid_authenticated = False
self.instance.profile.orcid_id = self.cleaned_data["orcid_id"] self.instance.profile.orcid_id = self.cleaned_data["orcid_id"]
self.instance.profile.webpage = self.cleaned_data["webpage"] self.instance.profile.webpage = self.cleaned_data["webpage"]
self.instance.profile.save() self.instance.profile.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment