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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,323 次查看
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.

标签 (1)
1 解答
803 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
804 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

803 次查看
panpwr
Contributor IV

Of course - now it seems very trivial :smileyhappy:

Thanks!

Lior.

0 项奖励
回复