diff --git a/.gitignore b/.gitignore index 78bcdd3..a40785e 100644 --- a/.gitignore +++ b/.gitignore @@ -67,4 +67,7 @@ docs/_build/ /dump.rdb # Project -config.py \ No newline at end of file +config.py + +# Mac +.DS_Store \ No newline at end of file diff --git a/cookie_api/auth.py b/cookie_api/auth.py index 6c4d859..63c7bf0 100644 --- a/cookie_api/auth.py +++ b/cookie_api/auth.py @@ -97,7 +97,8 @@ def register(user_data: UserCreateSchema, session: Session, mail: Mail, app: App tokenized_email = generate_confirmation_token(user.email) email_body = app.render_template('confirm_email.jinja2', - confirm_url=f'http://localhost:5000/auth/confirm?token={tokenized_email}' + confirm_url=f'http://localhost:5000/auth/confirm?token={tokenized_email}', + logo_url='http://localhost:5000/static/cookie_icon.png' ) msg = Message(subject="Confirm your email", diff --git a/cookie_api/static/cookie_icon.png b/cookie_api/static/cookie_icon.png new file mode 100644 index 0000000..043a48f Binary files /dev/null and b/cookie_api/static/cookie_icon.png differ diff --git a/cookie_api/templates/confirm_email.jinja2 b/cookie_api/templates/confirm_email.jinja2 index a3c8b10..c42f6f6 100644 --- a/cookie_api/templates/confirm_email.jinja2 +++ b/cookie_api/templates/confirm_email.jinja2 @@ -1,4 +1,310 @@ -

Welcome! Thanks for signing up. Please follow this link to activate your account:

-

Confirm your email

-
-

Cheers!

\ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + +
+ +
+ +
+ Cookie API +
+ +
+ +

+

+ + + + +
+ +
+ + +
+ +
+ + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + +
+ +
+ Welcome to the Cookie API. +
+ +
+ +
+ Please click the button below to confirm your email account. +
+ +
+ + + + + +
+ + Confirm Email + +
+ +
+ +
+ + +
+ +
+ + + + + +
+ + + + \ No newline at end of file diff --git a/wsgi.py b/wsgi.py index e0027a0..e804980 100644 --- a/wsgi.py +++ b/wsgi.py @@ -27,5 +27,4 @@ hooks = [ app = application_factory(components=components, hooks=hooks) if __name__ == '__main__': - app = application_factory() - app.serve('127.0.0.1', 5000, debug=True) + app.serve('0.0.0.0', 5000, debug=True)