Page 1 of 1

Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 3:33 pm
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?

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:12 pm
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);

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:24 pm
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.

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:27 pm
by chpwebmaster
after pulling up local storage in the dev console it is showing 0 for nuDevMode now

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:29 pm
by kev1n
Is it solved?

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:48 pm
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

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:51 pm
by kev1n
Replace nuGet2FAProcedure() in the 2FA form with the following function until it's fixed:

Code: Select all

function nuGet2FAProcedure() {
    return 'nuAuthentication2FA';
}

Re: Admin stuck in nuDevMode

Posted: Mon Mar 27, 2023 4:56 pm
by chpwebmaster
that fixed it

Re: Admin stuck in nuDevMode

Posted: Tue Mar 28, 2023 7:31 am
by kev1n
Function is fixed on Github