Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to enable Two Factor Authentication #1462

Closed
Schrijvers123 opened this issue Mar 28, 2024 · 3 comments
Closed

Unable to enable Two Factor Authentication #1462

Schrijvers123 opened this issue Mar 28, 2024 · 3 comments

Comments

@Schrijvers123
Copy link

Schrijvers123 commented Mar 28, 2024

Jetstream Version

5.0.1

Jetstream Stack

Inertia

Laravel Version

11.1.1

PHP Version

8.3.4

Database Driver & Version

No response

Description

It appears that enabling Two-Factor Authentication is currently impossible. When I am logged in and navigate to my user profile, I encounter a section where I should be able to activate Two-Factor Multi-Authentication. Unfortunately, it doesn't seem to work.

In the console, I receive the message 'Uncaught ReferenceError: axios is not defined
afbeelding

Steps To Reproduce

Just got to your profile and try to enable two way multifacty authentication

@driesvints
Copy link
Member

I can enable 2fa just fine on a fresh jetstream install with inertia.

@Schrijvers123
Copy link
Author

thanks for the update. Will debug more. Need to find wht COnfirmpassword.vue cause an axios error.

@Schrijvers123
Copy link
Author

Schrijvers123 commented Mar 31, 2024

Found a solution. Due to the fact I am not using Bootstrap, but Tailwin. I added the following code to app.js:

import axios from 'axios';

window.axios = axios;

window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

After this it was working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants