Skip to content

Commit

Permalink
Swapped CAPTCHA on each reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Treterten committed May 23, 2024
1 parent c342929 commit f3aee39
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/connection/database/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,21 @@ function resetPasswordError(id, error) {
}

export function showLoginActivity(id, fields = ['password']) {
swap(updateEntity, 'lock', id, setScreen, 'login', fields);
swapCaptcha(id, Flow.PASSWORD_RESET, false, () => {
swap(updateEntity, 'lock', id, setScreen, 'login', fields);
});
}

export function showSignUpActivity(id, fields = ['password']) {
swap(updateEntity, 'lock', id, setScreen, 'signUp', fields);
swapCaptcha(id, Flow.PASSWORD_RESET, false, () => {
swap(updateEntity, 'lock', id, setScreen, 'signUp', fields);
});
}

export function showResetPasswordActivity(id, fields = ['password']) {
swap(updateEntity, 'lock', id, setScreen, 'forgotPassword', fields);
swapCaptcha(id, Flow.PASSWORD_RESET, false, () => {
swap(updateEntity, 'lock', id, setScreen, 'forgotPassword', fields);
});
}

export function cancelResetPassword(id) {
Expand Down

0 comments on commit f3aee39

Please sign in to comment.