Skip to content
Snippets Groups Projects
Commit ded637c2 authored by michael.minelli's avatar michael.minelli
Browse files

Merge branch 'bug-fix-login-server-shutdown' into v3.5.0

parents 5cdaee22 0560f3d4
No related branches found
No related tags found
No related merge requests found
Pipeline #29571 passed
......@@ -38,11 +38,11 @@ class LoginServer {
if ( req.url?.match(Config.login.server.route) ) {
const urlParts = req.url.split('=');
if ( urlParts.length > 0 ) {
this.events.emit('code', urlParts[1]);
res.writeHead(HttpStatusCode.Ok, { 'Content-Type': 'text/html' });
res.write(`<html lang="en"><body><h1 style="color: green">DojoCLI login successful</h1><h3>You can close this window.</h3></body></html>`);
res.end();
this.events.emit('code', urlParts[1]);
return;
}
......@@ -66,6 +66,7 @@ class LoginServer {
stop() {
try {
this.server.close();
this.server.closeAllConnections();
this.events.emit('stopped');
} catch ( error ) {
this.events.emit('error', error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment