Fix broken login module

This commit is contained in:
IrosTheBeggar 2017-04-06 14:56:27 -04:00
parent ad49ae2806
commit 05668fa63d
2 changed files with 4 additions and 4 deletions

View File

@ -117,9 +117,9 @@ var MSTREAMAPI = (function () {
makePOSTRequest("/login", { username: username, password: password}, callback);
}
mstreamModule.updateCurrentServer = function(username, token, vPath){
currentServer.user = username;
currentServer.token = token;
currentServer.vPath = vPath;
mstreamModule.currentServer.user = username;
mstreamModule.currentServer.token = token;
mstreamModule.currentServer.vPath = vPath;
}
mstreamModule.ping = function(callback){

View File

@ -29,7 +29,7 @@ $(document).ready(function(){
Cookies.set('token', response.token);
// Add the token the URL calls
updateCurrentServer($('#login-username').val(), response.token, response.vPath)
MSTREAMAPI.updateCurrentServer($('#login-username').val(), response.token, response.vPath)
loadFileExplorer();