diff options
Diffstat (limited to 'shared/extra-utils/users/users.ts')
-rw-r--r-- | shared/extra-utils/users/users.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shared/extra-utils/users/users.ts b/shared/extra-utils/users/users.ts index c09211b71..1c39881d6 100644 --- a/shared/extra-utils/users/users.ts +++ b/shared/extra-utils/users/users.ts | |||
@@ -323,13 +323,16 @@ function askSendVerifyEmail (url: string, email: string) { | |||
323 | }) | 323 | }) |
324 | } | 324 | } |
325 | 325 | ||
326 | function verifyEmail (url: string, userId: number, verificationString: string, statusCodeExpected = 204) { | 326 | function verifyEmail (url: string, userId: number, verificationString: string, isPendingEmail = false, statusCodeExpected = 204) { |
327 | const path = '/api/v1/users/' + userId + '/verify-email' | 327 | const path = '/api/v1/users/' + userId + '/verify-email' |
328 | 328 | ||
329 | return makePostBodyRequest({ | 329 | return makePostBodyRequest({ |
330 | url, | 330 | url, |
331 | path, | 331 | path, |
332 | fields: { verificationString }, | 332 | fields: { |
333 | verificationString, | ||
334 | isPendingEmail | ||
335 | }, | ||
333 | statusCodeExpected | 336 | statusCodeExpected |
334 | }) | 337 | }) |
335 | } | 338 | } |