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:
parent
84772ad385
commit
47028db073
@ -944,7 +944,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
var password = $(event.currentTarget).form('get value', 'password');
|
var password = $(event.currentTarget).form('get value', 'password');
|
||||||
rest("POST", "/login", {"username": username, "password": password},
|
rest("POST", "/login", {"username": username, "password": password},
|
||||||
function(data) {
|
function(data) {
|
||||||
window.location.href = window.location.href.replace(/\?.*/, '?sid=@' + data + '@');
|
window.location.href = window.location.href.replace(/\?.*/, '') + '?sid=@' + data + '@';
|
||||||
},
|
},
|
||||||
function(xhr, ajaxOptions, thrownError) {
|
function(xhr, ajaxOptions, thrownError) {
|
||||||
default_error_callback(xhr, ajaxOptions, thrownError);
|
default_error_callback(xhr, ajaxOptions, thrownError);
|
||||||
|
Loading…
Reference in New Issue
Block a user