installationId only gets set on the session if passed in to the request

Signed-off-by: Alexander Mays <maysale01@gmail.com>
This commit is contained in:
Alexander Mays
2016-02-01 12:22:41 -05:00
parent bce6244e31
commit 07b0235349

View File

@@ -70,9 +70,13 @@ function handleLogIn(req) {
'authProvider': 'password' 'authProvider': 'password'
}, },
restricted: false, restricted: false,
expiresAt: Parse._encode(expiresAt).iso, expiresAt: Parse._encode(expiresAt).iso
installationId: req.info.installationId
}; };
if (req.info.installationId) {
sessionData.installationId = req.info.installationId
}
var create = new RestWrite(req.config, Auth.master(req.config), var create = new RestWrite(req.config, Auth.master(req.config),
'_Session', null, sessionData); '_Session', null, sessionData);
return create.execute(); return create.execute();