Merge branch 'devel' into launchscreen-client-removal

This commit is contained in:
Jan Dvorak
2021-04-30 02:47:02 +09:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -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 => {

View File

@@ -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.