Is there a way to turn off nuDevMode on admin? 2FA just shows the code in a nuMessage window and I think I've narrowed it down to that's what's causing it. Correct me if I'm wrong.
If it is and it needs to stay active for admin, can we at least split the admin 2FA setting to show the auth code out?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Admin stuck in nuDevMode Topic is solved
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Admin stuck in nuDevMode
Normally, nuDevMode() should not be activated. To disable it, run this JS in the developer console:
Code: Select all
localStorage.setItem('nuDevMode', '0');
nuSetProperty('nuDevMode', '0', true);
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
Re: Admin stuck in nuDevMode
tried that it's still showing in the session table under sss_hashcookies and 2fa is still showing the code and TEST MODE when I click send token.
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
Re: Admin stuck in nuDevMode
after pulling up local storage in the dev console it is showing 0 for nuDevMode now
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
Re: Admin stuck in nuDevMode
the nuDevMode in local storage is now showing 0 in the session it is still showing 1 and the 2fa is still showing the code in the message popup
the message is being spit out by nuOutput2FATokenToConsole() in nusecurity.php but I can't find what's calling it
the message is being spit out by nuOutput2FATokenToConsole() in nusecurity.php but I can't find what's calling it
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Admin stuck in nuDevMode
Replace nuGet2FAProcedure() in the 2FA form with the following function until it's fixed:
Code: Select all
function nuGet2FAProcedure() {
return 'nuAuthentication2FA';
}
-
- Posts: 72
- Joined: Mon Jun 10, 2019 5:00 pm
- Has thanked: 6 times
- Been thanked: 4 times
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact: