mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
fix: #9865, don't display register messages after login
This commit is contained in:
@@ -39,6 +39,7 @@ define('forum/login', ['hooks', 'translator', 'jquery-form'], function (hooks, t
|
|||||||
var pathname = utils.urlToLocation(data.next).pathname;
|
var pathname = utils.urlToLocation(data.next).pathname;
|
||||||
var params = utils.params({ url: data.next });
|
var params = utils.params({ url: data.next });
|
||||||
params.loggedin = true;
|
params.loggedin = true;
|
||||||
|
delete params.register; // clear register message incase it exists
|
||||||
var qs = decodeURIComponent($.param(params));
|
var qs = decodeURIComponent($.param(params));
|
||||||
|
|
||||||
window.location.href = pathname + '?' + qs;
|
window.location.href = pathname + '?' + qs;
|
||||||
|
|||||||
Reference in New Issue
Block a user