mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +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 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;
|
||||
|
||||
Reference in New Issue
Block a user