File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ void handle_restart()
169
169
170
170
if (!web_server.authenticate (" admin" , iotWebConf.getApPasswordParameter ()->valueBuffer ))
171
171
{
172
- web_server.requestAuthentication ();
172
+ web_server.requestAuthentication (BASIC_AUTH, APP_TITLE, " 401 Unauthorized<br><br>The password is incorrect. " );
173
173
return ;
174
174
}
175
175
@@ -219,7 +219,7 @@ void handle_flash()
219
219
220
220
if (!web_server.authenticate (" admin" , iotWebConf.getApPasswordParameter ()->valueBuffer ))
221
221
{
222
- web_server.requestAuthentication ();
222
+ web_server.requestAuthentication (BASIC_AUTH, APP_TITLE, " 401 Unauthorized<br><br>The password is incorrect. " );
223
223
return ;
224
224
}
225
225
@@ -401,7 +401,7 @@ void setup()
401
401
{ iotWebConf.handleConfig (); });
402
402
web_server.on (" /restart" , HTTP_GET, handle_restart);
403
403
// Camera snapshot
404
- web_server.on (" /snapshot" , handle_snapshot);
404
+ web_server.on (" /snapshot" , HTTP_GET, handle_snapshot);
405
405
// Camera flash light
406
406
web_server.on (" /flash" , HTTP_GET, handle_flash);
407
407
You can’t perform that action at this time.
0 commit comments