How do you modify the MQX webserver's "Authentication required" popup text?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do you modify the MQX webserver's "Authentication required" popup text?

Jump to solution
1,062 Views
panpwr
Contributor IV

Hello,

I've created a page with users authentication, which causes the browser (i.e., Google Chrome) to launch a popup for retrieving the credentials fro the user.

However, this popup displays Freescale's customized message (for full text see attached screenshot): "The server says: Freescale webpage."

How can I modify this text? i can't display as is in my product since it look unprofessional...

Thanks,

Lior.

Labels (1)
1 Solution
542 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Lior,

I agree with you. It doesn't good right to have this message in your authentication window. You can change this message in the array auth_realms[ ]. In the example "C:\Freescale\Freescale_MQX_4_1\rtcs\examples\httpsrv" it is located in the file httpdsrv.c. The first parameter of the first element is an array. Change it to the message you want it to be displayed.

Please let me know if doesn't work.
Have a great day,
Garabo

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
543 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Lior,

I agree with you. It doesn't good right to have this message in your authentication window. You can change this message in the array auth_realms[ ]. In the example "C:\Freescale\Freescale_MQX_4_1\rtcs\examples\httpsrv" it is located in the file httpdsrv.c. The first parameter of the first element is an array. Change it to the message you want it to be displayed.

Please let me know if doesn't work.
Have a great day,
Garabo

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

542 Views
panpwr
Contributor IV

Of course - now it seems very trivial :smileyhappy:

Thanks!

Lior.

0 Kudos