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:
parent
61a255c4ed
commit
95b6fb2613
1 changed files with 1 additions and 1 deletions
|
@ -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 } });
|
||||
|
|
Loading…
Reference in a new issue