We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7cb750 commit bff82e0Copy full SHA for bff82e0
blog/25-07-24/http-server/ex/login-server.js
@@ -75,7 +75,8 @@
75
76
function error(){
77
78
- var i = html.login.indexOf('</h4>')+5;
+ var i = html.login.indexOf('</h4>')+5;
79
+ var err = '<p style="color:red">Invalid username or password</p>';
80
var txt = html.login.slice(0,i)+err+html.login.slice(i+1);
81
res.writeHead(200,{'content-type':'text/html'});
82
res.end(txt);
0 commit comments