diff --git a/src/core/pyros_django/dashboard/views.py b/src/core/pyros_django/dashboard/views.py index 01b35c1..5c46e3d 100644 --- a/src/core/pyros_django/dashboard/views.py +++ b/src/core/pyros_django/dashboard/views.py @@ -443,14 +443,14 @@ def change_activate(request, pk): text_object = "" if (user.first_time == False and user.is_active == True): user.first_time = True - text_mail = "Hi,\n\nCongratulations, your registration has been approuved by the PI. Welcome to the Colibri Control Center.\n\nCordialy,\n\nColibri Control Center" - text_object = "[COLIBRI CC] Welcome" - elif (user.is_active == True): - text_mail = "Hi,\n\nYour account on the Colibri Control Center have been re-activated.\n\nCordialy,\n\nColibri Control Center" - text_object = "[COLIBRI CC] Re-activation" - else : - text_mail = "Hi,\n\nYour account on the Colibri Control Center have benn desactivated. Please contact the PI for futher information.\n\nCordialy,\n\nColibri Control Center" - text_object = "[COLIBRI CC] Desactivation" + text_mail = "Hi,\n\nCongratulations, your registration has been approved by the PI. Welcome to the PyROS Control Center.\n\nCordially,\n\nPyROS Control Center" + text_object = "[PyROS CC] Welcome" + # elif (user.is_active == True): + # text_mail = "Hi,\n\nYour account on the PyROS Control Center have been re-activated.\n\nCordially,\n\nPyROS Control Center" + # text_object = "[PyROS CC] Re-activation" + # else : + # text_mail = "Hi,\n\nYour account on the PyROS Control Center have benn desactivated. Please contact the PI for futher information.\n\nCordially,\n\nPyROS Control Center" + # text_object = "[PyROS CC] Desactivation" user.save() send_mail(text_object, text_mail, '', [user.email], fail_silently=False,) return redirect('user-detail', pk=pk) -- libgit2 0.21.2