bugfix _ext is now added bevor @ in email
This commit is contained in:
parent
d16c58610e
commit
07a90dae8c
|
@ -63,9 +63,10 @@ class EvaFormView(LoginRequiredMixin, CookieWizardView):
|
|||
data = super().get_all_cleaned_data()
|
||||
if not data['intern']:
|
||||
print("intern employee detected")
|
||||
if not data['email'].endswith('_ext'):
|
||||
print('added "_ext" to mail adress')
|
||||
data['email'] += '_ext'
|
||||
(user, domain) = data['email'].split('@')
|
||||
if not user.endswith('_ext'):
|
||||
print('add "_ext" to mail adress...')
|
||||
data['email'] = f'{user}_ext@{domain}'
|
||||
|
||||
print("delete CHOICE FROM DATA")
|
||||
if 'choice' in data:
|
||||
|
|
Loading…
Reference in New Issue