mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Handle email update on server
This commit is contained in:
parent
fff77ba231
commit
d1ab89deb7
12 changed files with 164 additions and 30 deletions
|
@ -323,13 +323,16 @@ function askSendVerifyEmail (url: string, email: string) {
|
|||
})
|
||||
}
|
||||
|
||||
function verifyEmail (url: string, userId: number, verificationString: string, statusCodeExpected = 204) {
|
||||
function verifyEmail (url: string, userId: number, verificationString: string, isPendingEmail = false, statusCodeExpected = 204) {
|
||||
const path = '/api/v1/users/' + userId + '/verify-email'
|
||||
|
||||
return makePostBodyRequest({
|
||||
url,
|
||||
path,
|
||||
fields: { verificationString },
|
||||
fields: {
|
||||
verificationString,
|
||||
isPendingEmail
|
||||
},
|
||||
statusCodeExpected
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue