diff --git a/static/img/error_temp.png b/static/img/error_temp.png new file mode 100644 index 00000000..f27e3554 Binary files /dev/null and b/static/img/error_temp.png differ diff --git a/static/img/svg_temp.png b/static/img/svg_temp.png new file mode 100644 index 00000000..a2b92761 Binary files /dev/null and b/static/img/svg_temp.png differ diff --git a/templates/email_invalid.html b/templates/email_invalid.html new file mode 100644 index 00000000..7f7c258b --- /dev/null +++ b/templates/email_invalid.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load static %} +{% block title %} +Email Confirmation page +{% endblock %} + +{% block head %} + + + + +{% endblock %} + +{% block body %} +
+
+
+ Link is invalid! +
+

Activation link is invalid!

+ +
+
+{% endblock %} diff --git a/templates/email_response.html b/templates/email_response.html new file mode 100644 index 00000000..4b56ce82 --- /dev/null +++ b/templates/email_response.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} +{% load static %} +{% block title %} +Email Confirmation page +{% endblock %} + +{% block head %} + + + + +{% endblock %} + +{% block body %} +
+
+

Your email has been confirmed!


+
+ Your Email has been verified! +

+

Now you can login to your account!


+ Back to Login page +
+
+{% endblock %} diff --git a/user/views.py b/user/views.py index e3589bbc..f351a2d6 100644 --- a/user/views.py +++ b/user/views.py @@ -239,6 +239,6 @@ def activate(request, uidb64, token): if user is not None and default_token_generator.check_token(user, token): user.is_active = True user.save() - return HttpResponse('Thank you for your email confirmation. Now you can login your account.') + return render(request,'email_response.html') else: - return HttpResponse('Activation link is invalid!') + return render(request,'email_invalid.html')