Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Admin stuck in nuDevMode Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
chpwebmaster
Posts: 72
Joined: Mon Jun 10, 2019 5:00 pm
Has thanked: 6 times
Been thanked: 4 times

Admin stuck in nuDevMode

Unread post by chpwebmaster »

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?
kev1n
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

Unread post by kev1n »

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);
chpwebmaster
Posts: 72
Joined: Mon Jun 10, 2019 5:00 pm
Has thanked: 6 times
Been thanked: 4 times

Re: Admin stuck in nuDevMode

Unread post by chpwebmaster »

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.
chpwebmaster
Posts: 72
Joined: Mon Jun 10, 2019 5:00 pm
Has thanked: 6 times
Been thanked: 4 times

Re: Admin stuck in nuDevMode

Unread post by chpwebmaster »

after pulling up local storage in the dev console it is showing 0 for nuDevMode now
kev1n
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

Unread post by kev1n »

Is it solved?
chpwebmaster
Posts: 72
Joined: Mon Jun 10, 2019 5:00 pm
Has thanked: 6 times
Been thanked: 4 times

Re: Admin stuck in nuDevMode

Unread post by chpwebmaster »

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
kev1n
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

Unread post by kev1n »

Replace nuGet2FAProcedure() in the 2FA form with the following function until it's fixed:

Code: Select all

function nuGet2FAProcedure() {
    return 'nuAuthentication2FA';
}
chpwebmaster
Posts: 72
Joined: Mon Jun 10, 2019 5:00 pm
Has thanked: 6 times
Been thanked: 4 times

Re: Admin stuck in nuDevMode

Unread post by chpwebmaster »

that fixed it
kev1n
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

Unread post by kev1n »

Function is fixed on Github
Post Reply