Skip to content

Node.js based forum software built for the modern web

fix: #9865, don't display register messages after login

Barış Soner Uşaklı96f5312de9db
diff --git a/public/src/client/login.js b/public/src/client/login.js
index 204dd799e2..b839c00efb 100644
--- a/public/src/client/login.js
+++ b/public/src/client/login.js
@@ -39,6 +39,7 @@ define('forum/login', ['hooks', 'translator', 'jquery-form'], function (hooks, t
var pathname = utils.urlToLocation(data.next).pathname;
var params = utils.params({ url: data.next });
params.loggedin = true;
+ delete params.register; // clear register message incase it exists
var qs = decodeURIComponent($.param(params));
window.location.href = pathname + '?' + qs;