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 252-259 Link Here
252
                    type: 'POST',
252
                    type: 'POST',
253
                    url: '/api/v1/auth/two-factor/registration/verification',
253
                    url: '/api/v1/auth/two-factor/registration/verification',
254
                    success: function (data) {
254
                    success: function (data) {
255
                        alert(_("Two-factor authentication correctly configured. You will be redirected to the login screen."));
255
                        return;
256
                        window.location = "/cgi-bin/koha/mainpage.pl";
257
                    },
256
                    },
258
                    error: function (data) {
257
                    error: function (data) {
259
                        const error = data.responseJSON.error;
258
                        const error = data.responseJSON.error;
Lines 263-268 Link Here
263
                            alert(error);
262
                            alert(error);
264
                        }
263
                        }
265
                    },
264
                    },
265
                }).then(function(){
266
                    alert(_("Two-factor authentication correctly configured. You will be redirected to the login screen."));
267
                    window.location = "/cgi-bin/koha/mainpage.pl";
266
                });
268
                });
267
            });
269
            });
268
270
(-)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