mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'devel' into launchscreen-client-removal
This commit is contained in:
@@ -5,7 +5,7 @@ Package.describe({
|
||||
// 2.2.x in the future. The version was also bumped to 2.0.0 temporarily
|
||||
// during the Meteor 1.5.1 release process, so versions 2.0.0-beta.2
|
||||
// through -beta.5 and -rc.0 have already been published.
|
||||
version: "1.7.0"
|
||||
version: "1.7.1"
|
||||
});
|
||||
|
||||
Package.onUse(api => {
|
||||
|
||||
@@ -277,8 +277,10 @@ const userQueryValidator = Match.Where(user => {
|
||||
});
|
||||
|
||||
const passwordValidator = Match.OneOf(
|
||||
String,
|
||||
{ digest: String, algorithm: String }
|
||||
Match.Where(str => Match.test(str, String) && str.length <= Meteor.settings?.packages?.accounts?.passwordMaxLength || 256), {
|
||||
digest: Match.Where(str => Match.test(str, String) && str.length === 64),
|
||||
algorithm: Match.OneOf('sha-256')
|
||||
}
|
||||
);
|
||||
|
||||
// Handler to login with a password.
|
||||
|
||||
Reference in New Issue
Block a user