aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-12 09:15:31 +0200
committerChocobozzz <me@florianbigard.com>2020-08-12 09:16:08 +0200
commite9c5f123383e461a890c95368dce6f79d3b84660 (patch)
treeb6c55e9572a3566d4f2defbff314ac8414be8212 /server/tests/api
parent857961f0ee39f90dc3267cebd2b5e3f718115d06 (diff)
downloadPeerTube-e9c5f123383e461a890c95368dce6f79d3b84660.tar.gz
PeerTube-e9c5f123383e461a890c95368dce6f79d3b84660.tar.zst
PeerTube-e9c5f123383e461a890c95368dce6f79d3b84660.zip
Do not reuse reset password links
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/email.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tests/api/server/email.ts b/server/tests/api/server/email.ts
index b01a91d48..05c89d2a3 100644
--- a/server/tests/api/server/email.ts
+++ b/server/tests/api/server/email.ts
@@ -123,6 +123,10 @@ describe('Test emails', function () {
123 await resetPassword(server.url, userId, verificationString, 'super_password2') 123 await resetPassword(server.url, userId, verificationString, 'super_password2')
124 }) 124 })
125 125
126 it('Should not reset the password with the same verification string', async function () {
127 await resetPassword(server.url, userId, verificationString, 'super_password3', 403)
128 })
129
126 it('Should login with this new password', async function () { 130 it('Should login with this new password', async function () {
127 user.password = 'super_password2' 131 user.password = 'super_password2'
128 132