Always use session.signIn().

This commit is contained in:
Julien Fontanet 2015-10-28 12:46:51 +01:00
parent d279db2a0e
commit 9122f9b291

View File

@ -240,12 +240,7 @@ Xo.prototype._tryToOpenSession = function () {
return
}
this._api.call(
credentials.token ?
'session.signInWithToken' :
'session.signInWithPassword',
credentials
).bind(this).then(
this._api.call('session.signIn', credentials).bind(this).then(
function (user) {
this.user = user