Skip to content

Commit ada2f2e

Browse files
committed
Merge branch 'master' into revjtanton/issue-72
2 parents 582fbeb + beb3035 commit ada2f2e

File tree

14 files changed

+1369
-2622
lines changed

14 files changed

+1369
-2622
lines changed

README.md

Lines changed: 152 additions & 148 deletions
Large diffs are not rendered by default.

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ services:
2020
db:
2121
image: postgres
2222
restart: always
23+
ports:
24+
- '5432:5432'
2325
environment:
2426
- POSTGRES_USER=${DATABASE_USER}
2527
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}

docs/swagger/swagger.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,37 @@
9696
}
9797
}
9898
},
99+
"/user/forgotpassword/{email}" : {
100+
"post" : {
101+
"tags" : [ "user" ],
102+
"summary" : "sends a reset password email",
103+
"description" : "The forgot password endpoint.",
104+
"parameters" : [ {
105+
"in" : "path",
106+
"name" : "email",
107+
"schema" : {
108+
"type" : "string",
109+
"format" : "email"
110+
},
111+
"required" : true,
112+
"description" : "email of the user"
113+
}],
114+
"responses" : {
115+
"200" : {
116+
"description" : "Reset password email sent"
117+
},
118+
"404" : {
119+
"description" : "User not found by email address provided"
120+
},
121+
"422" : {
122+
"description" : "Invalid input"
123+
},
124+
"500" : {
125+
"description" : "Server error"
126+
}
127+
}
128+
}
129+
},
99130
"/user" : {
100131
"post" : {
101132
"tags" : [ "user" ],
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<h1>Reset Your Password</h1>
2+
3+
<p>Need to reset your password? No Problem! Just click the button below and you'll be on your way. If you did not make this request, please ignore this email.</p>
4+
5+
<table width="100%" cellspacing="0" cellpadding="0">
6+
<tr>
7+
<td>
8+
<table cellspacing="0" cellpadding="0">
9+
<tr>
10+
<td style="border-radius: 2px;" bgcolor="#ED2939">
11+
<a href="{{ emailResetLink }}" target="_blank" style="padding: 8px 12px; border: 1px solid #ED2939;border-radius: 2px;font-family: Helvetica, Arial, sans-serif;font-size: 14px; color: #ffffff;text-decoration: none;font-weight:bold;display: inline-block;">
12+
Reset Your Password
13+
</a>
14+
</td>
15+
</tr>
16+
</table>
17+
</td>
18+
</tr>
19+
</table>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Reset Your Password
2+
3+
Need to reset your password? No Problem! Just click the link below and you'll be on your way. If you did not make this request, please ignore this email.
4+
5+
{{ emailResetLink }}

0 commit comments

Comments
 (0)