Skip to content

Commit fcec54a

Browse files
author
Jeny Sadadia
committed
Move templates to api directory
In order to access templates while running API from python package, move `templates` to `api` directory. Update `pyproject.toml` to include `api/templates` directory to the python package. Update `api.user_manager` to use `PackageLoader` to load templates from the python package. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent dcc5c94 commit fcec54a

7 files changed

+609
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{# SPDX-License-Identifier: LGPL-2.1-or-later -#}
2+
3+
Hello {{ username }},
4+
5+
Your email address has been verified successfully.
6+
7+
Thanks,
8+
KernelCI SysAdmin
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{# SPDX-License-Identifier: LGPL-2.1-or-later -#}
2+
3+
Hello {{ username }},
4+
5+
The token for verifying your email address for KernelCI API account is:
6+
7+
{{ token }}
8+
9+
Thanks,
10+
KernelCI SysAdmin
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{# SPDX-License-Identifier: LGPL-2.1-or-later -#}
2+
3+
Hello {{ username }},
4+
5+
Your password reset is successful.
6+
7+
Thanks,
8+
KernelCI SysAdmin

api/templates/reset-password.jinja2

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{# SPDX-License-Identifier: LGPL-2.1-or-later -#}
2+
3+
Hello {{ username }},
4+
5+
The token to reset your password for KernelCI API account is:
6+
7+
{{ token }}
8+
9+
Thanks,
10+
KernelCI SysAdmin

0 commit comments

Comments
 (0)