]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/email.ts
Deprecate old static routes
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / email.ts
index b01a91d48aea093209641062867b210ee85cb0fc..05c89d2a38b69b4a891f0c136da978df7e738ae4 100644 (file)
@@ -123,6 +123,10 @@ describe('Test emails', function () {
       await resetPassword(server.url, userId, verificationString, 'super_password2')
     })
 
+    it('Should not reset the password with the same verification string', async function () {
+      await resetPassword(server.url, userId, verificationString, 'super_password3', 403)
+    })
+
     it('Should login with this new password', async function () {
       user.password = 'super_password2'