Skip to content
Snippets Groups Projects
Commit 6b67ed70 authored by Chris Li's avatar Chris Li
Browse files

Merge branch 'chris/feature/user-auth-api' into 'main'

User Authentication Feature Added

See merge request !1
parents 90e38a1b 2e517f24
No related branches found
No related tags found
1 merge request!1User Authentication Feature Added
name: django
channels:
- conda-forge
- defaults
dependencies:
- asgiref=3.5.*
- ca-certificates=2022.10.11
- certifi=2022.12.7
- cryptography=38.0.*
- django=4.1
- django-extensions=3.2.*
- djangorestframework=3.14.*
- freetype=2.12.*
- ncurses=6.3
- openssl
- pillow=9.3.*
- pip
- pycparser=2.21
- pyjwt=2.6.0
- python=3.9.15
- pytz=2022.7.1
- readline=8.2
- setuptools=65.6.*
- sqlite=3.40.*
- sqlparse=0.4.*
- tk=8.6.*
- tzdata
- wheel=0.37.*
- zlib=1.2.*
- zstd=1.5.*
- pip:
- django-countries==7.5
- django-rest-knox==4.2.0
- django-rest-passwordreset==1.3.0
- typing-extensions==4.4.0
{% autoescape off %}
To initiate the password reset process for you {{ username }} for your BuyforFree Account,
click the link below:
{{reset_password_url}}
If clicking the link above doesn't work, please copy and paste the URL in a new browser
window instead.
Sincerely,
ECE651_DEMO
{% endautoescape %}
\ No newline at end of file
{% autoescape off %}
To initiate the password reset process for you {{ username }} for your Account,
click the link below:
http://{{ domain }}{% url 'activate' token=token %}
If clicking the link above doesn't work, please copy and paste the URL in a new browser
window instead.
Sincerely,
ECE651_DEMO
{% endautoescape %}
\ No newline at end of file
{% extends "email_index.html" %}
{%block content%}
<div class="container" style="height: auto; margin-bottom: 0px; padding-bottom: 0px; border: 0px solid red;">
<div class="row" style="height: auto; border: 0px solid green;">
<div class="col" style="width: auto; border: 0px solid red;">
<div class="container" style="border: 0px solid; margin-top: 200px; padding-bottom: 10px;">
<h1 style="font-family: 'Mulish', sans-serif; text-align: center; color: white; font-size: calc(25px + 4vw);">
{{status}}
</h1>
</div>
<hr style="background-color: white; width: 150px;">
<div class="container" style="border: 0px solid;">
<h1 style="font-family: 'Mulish', sans-serif; text-align: center; color: white; font-size: calc(15px + 1.5vw);">
{{msg}}
</h1>
</div>
<div class="mt-5">
<h1 style="font-family: 'Mulish', sans-serif; text-align: center; color: white; font-size: calc(15px + .5vw);">
{{ minor_msg }}
</h1>
</div>
</div>
</div>
</div>
{%endblock%}
\ No newline at end of file
{% extends "email_index.html" %}
{%block content%}
<div class="container" style="height: auto; margin-bottom: 0px; padding-bottom: 0px; border: 0px solid red;">
<div class="row" style="height: auto; border: 0px solid green;">
<div class="col" style="width: auto; border: 0px solid red;">
<div class="container" style="border: 0px solid; margin-top: 200px; padding-bottom: 10px;">
<h1 style="font-family: 'Mulish', sans-serif; text-align: center; color: white; font-size: calc(25px + 4vw);">
{{status}}
</h1>
</div>
<hr style="background-color: white; width: 150px;">
<div class="container" style="border: 0px solid;">
<h1 style="font-family: 'Mulish', sans-serif; text-align: center; color: white; font-size: calc(15px + .8vw);">
{{msg}}
</h1>
</div>
</div>
</div>
</div>
{%endblock%}
\ No newline at end of file
{%load static%}
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@200&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<title>{{status}}</title>
</head>
<style>
body {
background-image: linear-gradient(to right, rgb(218, 28, 123) , rgb(0, 110, 253));
/* background-image: linear-gradient(rgb(117, 224, 67), rgb(15, 231, 247)); */
}
</style>
<body>
{% if messages%}
{% for message in messages %}
<div class="alert alert-{{message.tags}}">
{{message}}
{% endfor %}
</div>
{% endif %}
{%block content%}{%endblock%}
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
</body>
</html>
\ No newline at end of file
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