meteor/meteor

Meteor.loginWithPassword should have a similar signature as Accounts.createUser

开放

#13,069 创建于 2024年3月21日

 (11 条评论) (4 个反应) (0 位负责人)JavaScript (5,257 个派生)batch import
Impact:someProject:Accounts:Passwordgood first issueidle

仓库指标

星标
 (44,781 个星标)
PR 合并指标
 (平均合并 9天 9小时) (30 天内合并 21 个 PR)

描述

It feels kind of weird that Accounts.createUser and Meteor.loginWithPassword have different signatures. I propose that Meteor.loginWithPassword is updated so that you can do this:

Meteor.loginWithPassword({ email, password }, (error, result) => {...})

I suppose it should have backwards compatibility so people aren't forced to rewrite their existing code.

Thoughts?

贡献者指南