0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): verify email via verification code should work properly (#3330)

This commit is contained in:
Charles Zhao 2023-03-09 11:01:18 +08:00 committed by GitHub
parent 61a255c4ed
commit 95b6fb2613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ const VerificationCodeModal = () => {
}
try {
await api.post(`me/verification-codes/verify`, { json: { verificationCode, email } });
await api.post(`me/verification-codes/verify`, { json: { verificationCode, email, action } });
if (action === 'changeEmail') {
await api.patch('me', { json: { primaryEmail: email } });