-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
[PUI] Login silently fails with MFA enabled #8595
Comments
I just reverted that line and it solves the issue. It now behaves as follows:
|
@sur5r thanks for the feedback. From here: https://stackoverflow.com/questions/69561596/object-hasown-vs-object-prototype-hasownproperty
Are you using Safari? |
- Also add null check on function call - Closes inventree#8595
No, I'm on Firefox 133. |
- Also add null check on function call - Closes #8595
Thanks! Tried it here and it works now. |
Awesome, thanks for letting me know |
Please verify that this bug has NOT been raised before.
Describe the bug*
In inventree/inventree-brother-plugin#49 @matmair said that PUI is supposed to redirect to PUI during login when a user has MFA enabled. Unfortunately, this does not work for me.
The POST request to
/api/auth/login
made by PUI results in 403 withAlso, the Console in WebDevTools spits this:
Assuming this is as helpful to you as it is to me, I disabled obfuscation in
vite.config.ts
which turns it toI hope this helps.
Steps to Reproduce
/platform
Expected behaviour
After clicking "Log in", get redirected to CUI to complete MFA authentication.
Deployment Method
Version Information
Version Information:
InvenTree-Version: 0.17.0 dev
Django Version: 4.2.16
Commit Hash: 327884c
Commit Date: 2024-11-29
Commit Branch: master
Database: postgresql
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-6.1.0-13-cloud-amd64-x86_64-with-glibc2.36
Installer: GIT
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.1.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.1.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'Brother Labels', 'slug': 'brother', 'version': '1.0.0'}]
Please verify if you can reproduce this bug on the demo site.
Relevant log output
The text was updated successfully, but these errors were encountered: