pass 'only_if_expired: true' so clicking 'resend link' doesn't expire old tokens

This commit is contained in:
Sean Yesmunt 2020-08-25 10:18:11 -04:00
parent 4035c18f8e
commit a28ce2d3b8

View file

@ -492,7 +492,7 @@ export function doUserResendVerificationEmail(email) {
});
};
Lbryio.call('user_email', 'resend_token', { email }, 'post')
Lbryio.call('user_email', 'resend_token', { email, only_if_expired: true }, 'post')
.catch(error => {
if (error.response && error.response.status === 409) {
throw error;