File tree 2 files changed +34
-0
lines changed
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,28 @@ Sends the token to verify the account associated with the provided email id via
27
27
{
28
28
" message" : " Verification email resent"
29
29
}
30
+
31
+ ## Verify Email [/v1/auth/verify-email]
32
+
33
+ ### Verify the email via auth token [POST ]
34
+ Verifies the user email via token.
35
+
36
+ + Request
37
+
38
+ + Headers
39
+
40
+ Content-Type : application/json
41
+
42
+ + Body
43
+
44
+ {
45
+ "data": {
46
+ "token": "your token"
47
+ }
48
+ }
49
+
50
+ + Response 200 (application/json)
51
+
52
+ {
53
+ " message" : " Email Verified"
54
+ }
Original file line number Diff line number Diff line change @@ -4199,6 +4199,15 @@ def reset_password_patch(transaction):
4199
4199
db .session .commit ()
4200
4200
4201
4201
4202
+ @hooks .before ("Email Verification > Verify Email > Verify the email via auth token" )
4203
+ def verify_email_from_token (transaction ):
4204
+ """
4205
+ POST /v1/auth/verify-email
4206
+ :param transaction:
4207
+ :return:
4208
+ """
4209
+ transaction ['skip' ] = True
4210
+
4202
4211
# ------------------------- Custom System Role -------------------------
4203
4212
4204
4213
@hooks .before ("Custom System Roles > Custom System Roles Collections > List All Custom System Roles" )
You can’t perform that action at this time.
0 commit comments