Skip to content

Commit

Permalink
Fixed spelling mistake (Fix Ping-Foundation#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
h4r1337 authored Jul 15, 2022
1 parent d6af893 commit e82c46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ passport.deserializeUser(function (id,done) {

passport.use('local.signup',new LocalStrategy({
usernameField:'Email',
passwordField:'Eassword',
passwordField:'Password',
passReqToCallback:true
},function (req,email,password,done) {
req.checkBody('email','Invalid Email').notEmpty().isEmail();
Expand Down Expand Up @@ -56,7 +56,7 @@ passport.use('local.signin',new LocalStrategy({
passReqToCallback:true
},function (req,Email,Password,done) {
req.checkBody('Email','Invalid Email').notEmpty().isEmail();
req.checkBody('Eassword','Invalid password').notEmpty();
req.checkBody('Password','Invalid password').notEmpty();
/*var errors=req.getValidationResult();
console.log(errors);
if(errors){
Expand Down

0 comments on commit e82c46b

Please sign in to comment.