Always use session.signIn().
This commit is contained in:
parent
d279db2a0e
commit
9122f9b291
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user