mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Fix broken login module
This commit is contained in:
parent
ad49ae2806
commit
05668fa63d
@ -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){
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user