passport-local-mongoose: Fix error in typescript@next (#17058)

This commit is contained in:
Andy 2017-06-08 15:10:57 -07:00 committed by Mohamed Hegazy
parent 261cdecc96
commit 2baab8780c

View File

@ -31,13 +31,13 @@ interface User extends PassportLocalDocument {
last: Date;
}
const UserSchema: PassportLocalSchema = new Schema({
const UserSchema = new Schema({
username: String,
hash: String,
salt: String,
attempts: Number,
last: Date
});
}) as PassportLocalSchema;
let options: PassportLocalOptions = <PassportLocalOptions>{};
options.iterations = 25000;