зеркало из https://github.com/mozilla/MozDef.git
Merge pull request #928 from mozilla/oidc_login_fix
let accounts module handle the stamped token
This commit is contained in:
Коммит
1b3704b2a4
|
@ -184,12 +184,11 @@ function registerLoginViaHeader() {
|
|||
});
|
||||
}
|
||||
|
||||
//generate login tokens
|
||||
var stampedToken = Accounts._generateStampedLoginToken();
|
||||
// return ala: https://github.com/meteor/meteor/blob/devel/packages/accounts-base/accounts_server.js#L340
|
||||
// per https://github.com/meteor/meteor/blob/devel/packages/accounts-base/accounts_server.js#L263
|
||||
// generating and storing the stamped login token is optional
|
||||
// so we just return the userId and let the accounts module do it's thing
|
||||
return {
|
||||
userId: userId,
|
||||
stampedLoginToken: stampedToken
|
||||
userId: userId
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче