Page 1 of 2

How to customize the login screen?

Posted: Fri Feb 01, 2019 1:11 am
by xyz2019
Hi,

Does anyone know how to change the logo size and the wording (e.g. "username", "Log in") in the login screen? The $nuWelcomeBodyInnerHTML block in the nuconfig.php is commented out so is there another file in which I can update the values?

Thanks!

Re: How to customize the login screen?

Posted: Fri Feb 01, 2019 4:30 am
by kev1n
Uncomment it.

Re: How to customize the login screen?

Posted: Fri Feb 01, 2019 3:38 pm
by xyz2019
Thanks! It worked.

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 4:29 am
by tpolimeni28
Looking for some help here. When I uncomment the section $nuWelcomeBodyInnerHTML = " to use my own custom logo when going to the DB I get an error 500, I have restarted apache and such, I comment out the section once again and it works. Any advise on what I could be doing wrong or anything additional I need to do? I replaced the logo.png in the default folder with my own customer logo. Here is what the section looks like commented out. I didnt change anything here but remove the /* and */ at the end....

Code: Select all

/*
        $nuWelcomeBodyInnerHTML = "

                                <div id='outer' style='width:100%'>
                                <form id='nuLoginForm' action='#' method='post' onsubmit='return false'>
                                        <div id='login' class='nuLogin'>
                                                <table>
                                                        <tr>
                                                                <td align='center' style='padding:0px 0px 0px 33px; text-align:center;'>
                                                                <img src='core/graphics/logo.png'><br><br>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td><div style='width:90px; margin-bottom: 5px;'>Username</div><input class='nuLoginInput' id='nuusername' autocomplete='off' /><br><br></td>
                                                        </tr>
                                                        <tr>
                                                                <td><div style='width:90px; margin-bottom: 5px;'>Password</div><input class='nuLoginInput' id='nupassword' type='password' autocomplete='off'  onkeypress='nuSubmit(even$
                                                        </tr>
                                                        <tr>
                                                                <td style='text-align:center' colspan='2'><br><br>
                                                                        <input id='submit' style='width:90px' type='submit' class='nuButton' onclick='nuLoginRequest()' value='Log in'/>
                                                                </td>
                                                        </tr>
                                                </table>
                                        </div>
                                </form>
                                </div>

        ";
*/

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 4:32 am
by kev1n
Hi,

Can you upload your modified nuconfig.php here (as zip file)?
Remove any confidential info.

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 4:45 am
by tpolimeni28
kev1n wrote: Fri Apr 08, 2022 4:32 am Hi,

Can you upload your modified nuconfig.php here (as zip file)?
Remove any confidential info.
Attached with info removed.. Might not be the same forum but is it possible I can add in AzureAD - MS Graph API for login auth and creation of user groups?

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 5:56 am
by kev1n
I uncommented $nuWelcomeBodyInnerHTML and I see no issues here. Did you change any html code within that variable?

PS: New question, new topic please.

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 6:12 am
by tpolimeni28
kev1n wrote: Fri Apr 08, 2022 5:56 am I uncommented $nuWelcomeBodyInnerHTML and I see no issues here. Did you change any html code within that variable?

PS: New question, new topic please.
I did not, I simply uncomment the /* and */ between the lines in the lower section, I save, restart my webserver. WHen I browse to my default link I get an error 500. I also did not change any HTML code within that section. I added my new logo I created to my home dir, cp to the current logo folder.... It looks like apache is still the file owner as well. When I look at the file folder as well via the file screen I see my logo as well

uncomment.PNG
error.PNG

Once I restore the comment it works again

graphics]# ls -l
total 184
-rw-r----- 1 apache apache 4674 Jan 1 10:43 ad.png
-rw-r----- 1 apache apache 5545 Jan 1 10:44 as.png
-rw-r----- 1 apache apache 4823 Jan 1 10:46 bb.png
-rw-r----- 1 apache apache 4441 Jan 1 10:55 bd.png
-rw-r----- 1 apache apache 3826 Jan 1 11:00 be.png
-rw-r----- 1 apache apache 5270 Jan 1 11:01 bs.png
-rw-r----- 1 apache apache 229 Jan 17 2021 close.png
-rw-r----- 1 apache apache 356 Jan 17 2021 close_red.png
-rw-r----- 1 apache apache 5914 Jan 1 10:31 css.png
-rw-r----- 1 apache apache 1630 Jan 1 11:04 diamone_purple.png
-rw-r----- 1 apache apache 3047 Jan 1 10:17 empty_diamond.png
-rw-r----- 1 apache apache 194 Jan 17 2021 grid.png
-rw-r----- 1 apache apache 3604 Jan 1 12:04 html.png
-rw-r----- 1 apache apache 4244 Jan 1 10:35 js.png
-rw-r----- 1 apache apache 3716 Jan 17 2021 logo.png<<<<<<<<<<<<<
-rw-r----- 1 apache apache 4476 Jan 1 11:07 lujs.png
-rw-r----- 1 apache apache 20540 Jan 17 2021 magnify.png
-rw-r----- 1 apache apache 12568 Jan 17 2021 nu_box_close.png
-rw-r----- 1 apache apache 1891 Jan 17 2021 nuerror.png
-rw-r----- 1 apache apache 1874 Jan 17 2021 numessage.png
-rw-r----- 1 apache apache 577 Jan 17 2021 nu_scroll.png
-rw-r----- 1 apache apache 20348 Jan 17 2021 nu_undo.png
-rw-r----- 1 apache apache 3421 Jan 1 11:53 php.png
-rw-r----- 1 apache apache 5012 Jan 1 11:43 sql.png
-rw-r----- 1 apache apache 1531 Jan 17 2021 trash_can.png

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 6:17 am
by kev1n
I see two slashes that do not belong there

You need to remove /* and not just *

And this was not in your uploaded nuconfig.php

Re: How to customize the login screen?

Posted: Fri Apr 08, 2022 6:27 am
by tpolimeni28
kev1n wrote: Fri Apr 08, 2022 6:17 am I see two slashes that do not belong there

You need to remove /* and not just *

And this was not in your uploaded nuconfig.php
Oh my, sorry about that, if I use and place a custom logo in the graphics folder will that replace the default one on the login page?