1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Fix redirect

This commit is contained in:
Jan Schneider 2018-07-28 02:24:32 +02:00
parent 84772ad385
commit 47028db073

View File

@ -944,7 +944,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
var password = $(event.currentTarget).form('get value', 'password');
rest("POST", "/login", {"username": username, "password": password},
function(data) {
window.location.href = window.location.href.replace(/\?.*/, '?sid=@' + data + '@');
window.location.href = window.location.href.replace(/\?.*/, '') + '?sid=@' + data + '@';
},
function(xhr, ajaxOptions, thrownError) {
default_error_callback(xhr, ajaxOptions, thrownError);