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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,392件の閲覧回数
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 解決策
1,872件の閲覧回数
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 返答(返信)
1,873件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

1,872件の閲覧回数
panpwr
Contributor IV

Of course - now it seems very trivial :smileyhappy:

Thanks!

Lior.

0 件の賞賛
返信