View | Details | Raw Unified | Return to bug 32010
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (-2 / +4 lines)
Lines 279-286 Link Here
279
                    type: 'POST',
279
                    type: 'POST',
280
                    url: '/api/v1/auth/two-factor/registration/verification',
280
                    url: '/api/v1/auth/two-factor/registration/verification',
281
                    success: function (data) {
281
                    success: function (data) {
282
                        alert(_("Two-factor authentication correctly configured. You will be redirected to the login screen."));
282
                        return;
283
                        window.location = "/cgi-bin/koha/mainpage.pl";
284
                    },
283
                    },
285
                    error: function (data) {
284
                    error: function (data) {
286
                        const error = data.responseJSON.error;
285
                        const error = data.responseJSON.error;
Lines 290-295 Link Here
290
                            alert(error);
289
                            alert(error);
291
                        }
290
                        }
292
                    },
291
                    },
292
                }).then(function(){
293
                    alert(_("Two-factor authentication correctly configured. You will be redirected to the login screen."));
294
                    window.location = "/cgi-bin/koha/mainpage.pl";
293
                });
295
                });
294
            });
296
            });
295
297
(-)a/t/db_dependent/selenium/authentication_2fa.t (-1 / +1 lines)
Lines 279-284 SKIP: { Link Here
279
        $driver->find_element('//*[@id="pin_code"]')->clear;
279
        $driver->find_element('//*[@id="pin_code"]')->clear;
280
        $driver->find_element('//*[@id="pin_code"]')->send_keys($pin_code);
280
        $driver->find_element('//*[@id="pin_code"]')->send_keys($pin_code);
281
        $driver->find_element('//*[@id="register-2FA"]')->click;
281
        $driver->find_element('//*[@id="register-2FA"]')->click;
282
        $s->wait_for_ajax;
282
        is( $driver->get_alert_text,
283
        is( $driver->get_alert_text,
283
            "Two-factor authentication correctly configured. You will be redirected to the login screen."
284
            "Two-factor authentication correctly configured. You will be redirected to the login screen."
284
        );
285
        );
285
- 

Return to bug 32010