the serialize and deserialze methods are not getting called separately
up vote
0
down vote
favorite
I have used Passport local strategy previously in my last project , in this >project am using both google oauth 2.0 strategy and passport local strategy,>the problem am facing is that serialzeUser and deserialize user method of both strategies are not getting called separately, if the first strategy is using its own serialize and deserialize method than the second one is using serialize and deserialize method of the first one and vice versa.
My question is that what code changes should i make that serialize and deserialize method of both strategies get called differently and set their own session separately.
Local strategy file
this is Passport local strategy file , its working fine , while entering correct email and password in the login form, its returning the user object but the inspite of this the user is not getting set into the session since its serilize and deserilize methods are not getting called.
const LocalStrategy=require('passport-local').Strategy;
const mongoose = require('mongoose');
const bcrypt=require('bcryptjs');
const passport=require('passport');
//const User =require('../models/CUser')
//Load user Model
require('../models/CUser');
const User = mongoose.model('CUsers');
module.exports=function(localC)
console.log(localC)
//local Strategy
console.log("inside passport...........");
localC.use(
new LocalStrategy(
usernameField:'email',(email,password,done)=>
//match usernaame
console.log(email);
console.log(password)
let query =email:email;
User.findOne(query , function(err,user)
console.log("Before error")
if(err) throw err;
if(!user)
return done(null,false,message:'No user Found');
bcrypt.compare(password,user.password,function(err,isMatch)
console.log("In compare function......")
if(err) throw err;
if(isMatch)
console.log("here......")
console.log(user)
return done(null,user);
else
return done(null,false,message:'Wrong password')
)
)
))
passport.serializeUser(function(user, done)
console.log("in serialize of local strategy............")
done(null, user.id);
);
passport.deserializeUser(function(id, done)
console.log("in deserialize of local strategy........")
User.findById(id, function(err, user)
done(err, user);
);
);
Google Oauth strategy file
const GoogleStrategy=require('passport-google-oauth20').Strategy;
const mongoose = require('mongoose');
const keys = require('./keys');
const passport = require('passport');
const User =mongoose.model('users');
module.exports=function(googleS)
googleS.use(
new GoogleStrategy(
clientID:keys.googleClientID,
clientSecret:keys.googleClientSecret,
callbackURL:'/auth/google/callback',
proxy:true
,(accessToken,refreshToken,profile,done)=>
// console.log("This is access token......................................................");
// console.log(accessToken);
// console.log("This is profile...............................");
// console.log(profile);
const image = profile.photos[0].value.substring(0, profile.photos[0].value.indexOf('?'));
const newUser =
googleID:profile.id,
firstName:profile.name.givenName,
lastName:profile.name.familyName,
email:profile.emails[0].value,
image:image
//check for existing model
User.findOne(
googleID:profile.id
).then( user=>
if(user)
done(null,user);
else
new User(newUser)
.save()
.then(user => done(null,user));
)
)
)
passport.serializeUser( (user,done)=>
console.log("in serialize of oauth.............")
done(null,user.id);
);
passport.deserializeUser( (id,done)=>
console.log("in deserialize of oauth.....................")
User.findById(id).then(user =>done(null,user));
);
app.js File
this is app.js file,
const express = require("express");
const path = require("path");
const exphbs = require("express-handlebars");
const bodyParser = require("body-parser");
const mongoose = require("mongoose");
const passport = require("passport");
const Cpassport=require('./config/Cpassport');
const cookieParser = require("cookie-parser");
const session = require("express-session");
const methodOverride = require("method-override");
const flash = require("express-flash");
const mailer = require("express-mailer");
//Handlebars helpers
const
truncate,
stripTags,
formatDate,
select,
editIcon
= require("./helpers/hbs");
var googleS = new passport.Passport();
var localS = new passport.Passport();
const app = express();
//set static folder
app.use(express.static(path.join(__dirname, "public")));
//load keys
const keys = require("./config/keys");
//Map global Promises
mongoose.Promise = global.Promise;
//Mongoose Connection
mongoose
.connect(keys.mongoURI)
.then(() => console.log("MongoDB Connected"))
.catch(err => console.log(err));
//load user model
require("./models/User");
//story model
require("./models/Story");
//feedback model
require("./models/Feedback");
//local strategy model
require("./models/CUser");
//session
app.use(cookieParser());
app.use(
session(
secret: "secret",
resave: true,
saveUninitialized: true
)
);
//passport config
require("./config/passport")(googleS);
require("./config/Cpassport")(localS);
//Passport Middleware
app.use(passport.initialize());
app.use(passport.session());
//flash middleware
app.use(flash());
//set global variables
app.use((req, res, next) => null;
// res.locals.userr = req.userr );
// Load Routes
const auth = require("./routes/auth");
const index = require("./routes/index");
const stories = require("./routes/stories");
const mailOptions = require("./helper/mailer");
//body-parser middleware
app.use(bodyParser.urlencoded( extended: false ));
app.use(bodyParser.json());
//method overriding body parser
app.use(methodOverride("_method"));
//mailer
mailer.extend(app,
from: "Belle Solutions",
host: "smtp.gmail.com",
secureConnection: true,
port: 465,
transportMethod: "SMTP",
auth:
user: keys.email,
pass: keys.pass
);
//handlebars
app.engine(
"handlebars",
exphbs(
helpers:
truncate: truncate,
stripTags: stripTags,
formatDate: formatDate,
select: select,
editIcon: editIcon
,
defaultLayout: "main"
)
);
// app.get('*' , function(req ,res ,next))
app.set("view engine", "handlebars");
//use routes
app.use("/auth", auth);
app.use("/", index);
app.use("/stories", stories);
const port = process.env.PORT || 5000;
app.listen(port, () =>
console.log(`Server started on port $port`);
);
Any help or suggestion is really appreciated.
javascript node.js express passport-local passport-google-oauth2
add a comment |
up vote
0
down vote
favorite
I have used Passport local strategy previously in my last project , in this >project am using both google oauth 2.0 strategy and passport local strategy,>the problem am facing is that serialzeUser and deserialize user method of both strategies are not getting called separately, if the first strategy is using its own serialize and deserialize method than the second one is using serialize and deserialize method of the first one and vice versa.
My question is that what code changes should i make that serialize and deserialize method of both strategies get called differently and set their own session separately.
Local strategy file
this is Passport local strategy file , its working fine , while entering correct email and password in the login form, its returning the user object but the inspite of this the user is not getting set into the session since its serilize and deserilize methods are not getting called.
const LocalStrategy=require('passport-local').Strategy;
const mongoose = require('mongoose');
const bcrypt=require('bcryptjs');
const passport=require('passport');
//const User =require('../models/CUser')
//Load user Model
require('../models/CUser');
const User = mongoose.model('CUsers');
module.exports=function(localC)
console.log(localC)
//local Strategy
console.log("inside passport...........");
localC.use(
new LocalStrategy(
usernameField:'email',(email,password,done)=>
//match usernaame
console.log(email);
console.log(password)
let query =email:email;
User.findOne(query , function(err,user)
console.log("Before error")
if(err) throw err;
if(!user)
return done(null,false,message:'No user Found');
bcrypt.compare(password,user.password,function(err,isMatch)
console.log("In compare function......")
if(err) throw err;
if(isMatch)
console.log("here......")
console.log(user)
return done(null,user);
else
return done(null,false,message:'Wrong password')
)
)
))
passport.serializeUser(function(user, done)
console.log("in serialize of local strategy............")
done(null, user.id);
);
passport.deserializeUser(function(id, done)
console.log("in deserialize of local strategy........")
User.findById(id, function(err, user)
done(err, user);
);
);
Google Oauth strategy file
const GoogleStrategy=require('passport-google-oauth20').Strategy;
const mongoose = require('mongoose');
const keys = require('./keys');
const passport = require('passport');
const User =mongoose.model('users');
module.exports=function(googleS)
googleS.use(
new GoogleStrategy(
clientID:keys.googleClientID,
clientSecret:keys.googleClientSecret,
callbackURL:'/auth/google/callback',
proxy:true
,(accessToken,refreshToken,profile,done)=>
// console.log("This is access token......................................................");
// console.log(accessToken);
// console.log("This is profile...............................");
// console.log(profile);
const image = profile.photos[0].value.substring(0, profile.photos[0].value.indexOf('?'));
const newUser =
googleID:profile.id,
firstName:profile.name.givenName,
lastName:profile.name.familyName,
email:profile.emails[0].value,
image:image
//check for existing model
User.findOne(
googleID:profile.id
).then( user=>
if(user)
done(null,user);
else
new User(newUser)
.save()
.then(user => done(null,user));
)
)
)
passport.serializeUser( (user,done)=>
console.log("in serialize of oauth.............")
done(null,user.id);
);
passport.deserializeUser( (id,done)=>
console.log("in deserialize of oauth.....................")
User.findById(id).then(user =>done(null,user));
);
app.js File
this is app.js file,
const express = require("express");
const path = require("path");
const exphbs = require("express-handlebars");
const bodyParser = require("body-parser");
const mongoose = require("mongoose");
const passport = require("passport");
const Cpassport=require('./config/Cpassport');
const cookieParser = require("cookie-parser");
const session = require("express-session");
const methodOverride = require("method-override");
const flash = require("express-flash");
const mailer = require("express-mailer");
//Handlebars helpers
const
truncate,
stripTags,
formatDate,
select,
editIcon
= require("./helpers/hbs");
var googleS = new passport.Passport();
var localS = new passport.Passport();
const app = express();
//set static folder
app.use(express.static(path.join(__dirname, "public")));
//load keys
const keys = require("./config/keys");
//Map global Promises
mongoose.Promise = global.Promise;
//Mongoose Connection
mongoose
.connect(keys.mongoURI)
.then(() => console.log("MongoDB Connected"))
.catch(err => console.log(err));
//load user model
require("./models/User");
//story model
require("./models/Story");
//feedback model
require("./models/Feedback");
//local strategy model
require("./models/CUser");
//session
app.use(cookieParser());
app.use(
session(
secret: "secret",
resave: true,
saveUninitialized: true
)
);
//passport config
require("./config/passport")(googleS);
require("./config/Cpassport")(localS);
//Passport Middleware
app.use(passport.initialize());
app.use(passport.session());
//flash middleware
app.use(flash());
//set global variables
app.use((req, res, next) => null;
// res.locals.userr = req.userr );
// Load Routes
const auth = require("./routes/auth");
const index = require("./routes/index");
const stories = require("./routes/stories");
const mailOptions = require("./helper/mailer");
//body-parser middleware
app.use(bodyParser.urlencoded( extended: false ));
app.use(bodyParser.json());
//method overriding body parser
app.use(methodOverride("_method"));
//mailer
mailer.extend(app,
from: "Belle Solutions",
host: "smtp.gmail.com",
secureConnection: true,
port: 465,
transportMethod: "SMTP",
auth:
user: keys.email,
pass: keys.pass
);
//handlebars
app.engine(
"handlebars",
exphbs(
helpers:
truncate: truncate,
stripTags: stripTags,
formatDate: formatDate,
select: select,
editIcon: editIcon
,
defaultLayout: "main"
)
);
// app.get('*' , function(req ,res ,next))
app.set("view engine", "handlebars");
//use routes
app.use("/auth", auth);
app.use("/", index);
app.use("/stories", stories);
const port = process.env.PORT || 5000;
app.listen(port, () =>
console.log(`Server started on port $port`);
);
Any help or suggestion is really appreciated.
javascript node.js express passport-local passport-google-oauth2
please, suggest ........
– Babita Bisht
Oct 6 at 11:25
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have used Passport local strategy previously in my last project , in this >project am using both google oauth 2.0 strategy and passport local strategy,>the problem am facing is that serialzeUser and deserialize user method of both strategies are not getting called separately, if the first strategy is using its own serialize and deserialize method than the second one is using serialize and deserialize method of the first one and vice versa.
My question is that what code changes should i make that serialize and deserialize method of both strategies get called differently and set their own session separately.
Local strategy file
this is Passport local strategy file , its working fine , while entering correct email and password in the login form, its returning the user object but the inspite of this the user is not getting set into the session since its serilize and deserilize methods are not getting called.
const LocalStrategy=require('passport-local').Strategy;
const mongoose = require('mongoose');
const bcrypt=require('bcryptjs');
const passport=require('passport');
//const User =require('../models/CUser')
//Load user Model
require('../models/CUser');
const User = mongoose.model('CUsers');
module.exports=function(localC)
console.log(localC)
//local Strategy
console.log("inside passport...........");
localC.use(
new LocalStrategy(
usernameField:'email',(email,password,done)=>
//match usernaame
console.log(email);
console.log(password)
let query =email:email;
User.findOne(query , function(err,user)
console.log("Before error")
if(err) throw err;
if(!user)
return done(null,false,message:'No user Found');
bcrypt.compare(password,user.password,function(err,isMatch)
console.log("In compare function......")
if(err) throw err;
if(isMatch)
console.log("here......")
console.log(user)
return done(null,user);
else
return done(null,false,message:'Wrong password')
)
)
))
passport.serializeUser(function(user, done)
console.log("in serialize of local strategy............")
done(null, user.id);
);
passport.deserializeUser(function(id, done)
console.log("in deserialize of local strategy........")
User.findById(id, function(err, user)
done(err, user);
);
);
Google Oauth strategy file
const GoogleStrategy=require('passport-google-oauth20').Strategy;
const mongoose = require('mongoose');
const keys = require('./keys');
const passport = require('passport');
const User =mongoose.model('users');
module.exports=function(googleS)
googleS.use(
new GoogleStrategy(
clientID:keys.googleClientID,
clientSecret:keys.googleClientSecret,
callbackURL:'/auth/google/callback',
proxy:true
,(accessToken,refreshToken,profile,done)=>
// console.log("This is access token......................................................");
// console.log(accessToken);
// console.log("This is profile...............................");
// console.log(profile);
const image = profile.photos[0].value.substring(0, profile.photos[0].value.indexOf('?'));
const newUser =
googleID:profile.id,
firstName:profile.name.givenName,
lastName:profile.name.familyName,
email:profile.emails[0].value,
image:image
//check for existing model
User.findOne(
googleID:profile.id
).then( user=>
if(user)
done(null,user);
else
new User(newUser)
.save()
.then(user => done(null,user));
)
)
)
passport.serializeUser( (user,done)=>
console.log("in serialize of oauth.............")
done(null,user.id);
);
passport.deserializeUser( (id,done)=>
console.log("in deserialize of oauth.....................")
User.findById(id).then(user =>done(null,user));
);
app.js File
this is app.js file,
const express = require("express");
const path = require("path");
const exphbs = require("express-handlebars");
const bodyParser = require("body-parser");
const mongoose = require("mongoose");
const passport = require("passport");
const Cpassport=require('./config/Cpassport');
const cookieParser = require("cookie-parser");
const session = require("express-session");
const methodOverride = require("method-override");
const flash = require("express-flash");
const mailer = require("express-mailer");
//Handlebars helpers
const
truncate,
stripTags,
formatDate,
select,
editIcon
= require("./helpers/hbs");
var googleS = new passport.Passport();
var localS = new passport.Passport();
const app = express();
//set static folder
app.use(express.static(path.join(__dirname, "public")));
//load keys
const keys = require("./config/keys");
//Map global Promises
mongoose.Promise = global.Promise;
//Mongoose Connection
mongoose
.connect(keys.mongoURI)
.then(() => console.log("MongoDB Connected"))
.catch(err => console.log(err));
//load user model
require("./models/User");
//story model
require("./models/Story");
//feedback model
require("./models/Feedback");
//local strategy model
require("./models/CUser");
//session
app.use(cookieParser());
app.use(
session(
secret: "secret",
resave: true,
saveUninitialized: true
)
);
//passport config
require("./config/passport")(googleS);
require("./config/Cpassport")(localS);
//Passport Middleware
app.use(passport.initialize());
app.use(passport.session());
//flash middleware
app.use(flash());
//set global variables
app.use((req, res, next) => null;
// res.locals.userr = req.userr );
// Load Routes
const auth = require("./routes/auth");
const index = require("./routes/index");
const stories = require("./routes/stories");
const mailOptions = require("./helper/mailer");
//body-parser middleware
app.use(bodyParser.urlencoded( extended: false ));
app.use(bodyParser.json());
//method overriding body parser
app.use(methodOverride("_method"));
//mailer
mailer.extend(app,
from: "Belle Solutions",
host: "smtp.gmail.com",
secureConnection: true,
port: 465,
transportMethod: "SMTP",
auth:
user: keys.email,
pass: keys.pass
);
//handlebars
app.engine(
"handlebars",
exphbs(
helpers:
truncate: truncate,
stripTags: stripTags,
formatDate: formatDate,
select: select,
editIcon: editIcon
,
defaultLayout: "main"
)
);
// app.get('*' , function(req ,res ,next))
app.set("view engine", "handlebars");
//use routes
app.use("/auth", auth);
app.use("/", index);
app.use("/stories", stories);
const port = process.env.PORT || 5000;
app.listen(port, () =>
console.log(`Server started on port $port`);
);
Any help or suggestion is really appreciated.
javascript node.js express passport-local passport-google-oauth2
I have used Passport local strategy previously in my last project , in this >project am using both google oauth 2.0 strategy and passport local strategy,>the problem am facing is that serialzeUser and deserialize user method of both strategies are not getting called separately, if the first strategy is using its own serialize and deserialize method than the second one is using serialize and deserialize method of the first one and vice versa.
My question is that what code changes should i make that serialize and deserialize method of both strategies get called differently and set their own session separately.
Local strategy file
this is Passport local strategy file , its working fine , while entering correct email and password in the login form, its returning the user object but the inspite of this the user is not getting set into the session since its serilize and deserilize methods are not getting called.
const LocalStrategy=require('passport-local').Strategy;
const mongoose = require('mongoose');
const bcrypt=require('bcryptjs');
const passport=require('passport');
//const User =require('../models/CUser')
//Load user Model
require('../models/CUser');
const User = mongoose.model('CUsers');
module.exports=function(localC)
console.log(localC)
//local Strategy
console.log("inside passport...........");
localC.use(
new LocalStrategy(
usernameField:'email',(email,password,done)=>
//match usernaame
console.log(email);
console.log(password)
let query =email:email;
User.findOne(query , function(err,user)
console.log("Before error")
if(err) throw err;
if(!user)
return done(null,false,message:'No user Found');
bcrypt.compare(password,user.password,function(err,isMatch)
console.log("In compare function......")
if(err) throw err;
if(isMatch)
console.log("here......")
console.log(user)
return done(null,user);
else
return done(null,false,message:'Wrong password')
)
)
))
passport.serializeUser(function(user, done)
console.log("in serialize of local strategy............")
done(null, user.id);
);
passport.deserializeUser(function(id, done)
console.log("in deserialize of local strategy........")
User.findById(id, function(err, user)
done(err, user);
);
);
Google Oauth strategy file
const GoogleStrategy=require('passport-google-oauth20').Strategy;
const mongoose = require('mongoose');
const keys = require('./keys');
const passport = require('passport');
const User =mongoose.model('users');
module.exports=function(googleS)
googleS.use(
new GoogleStrategy(
clientID:keys.googleClientID,
clientSecret:keys.googleClientSecret,
callbackURL:'/auth/google/callback',
proxy:true
,(accessToken,refreshToken,profile,done)=>
// console.log("This is access token......................................................");
// console.log(accessToken);
// console.log("This is profile...............................");
// console.log(profile);
const image = profile.photos[0].value.substring(0, profile.photos[0].value.indexOf('?'));
const newUser =
googleID:profile.id,
firstName:profile.name.givenName,
lastName:profile.name.familyName,
email:profile.emails[0].value,
image:image
//check for existing model
User.findOne(
googleID:profile.id
).then( user=>
if(user)
done(null,user);
else
new User(newUser)
.save()
.then(user => done(null,user));
)
)
)
passport.serializeUser( (user,done)=>
console.log("in serialize of oauth.............")
done(null,user.id);
);
passport.deserializeUser( (id,done)=>
console.log("in deserialize of oauth.....................")
User.findById(id).then(user =>done(null,user));
);
app.js File
this is app.js file,
const express = require("express");
const path = require("path");
const exphbs = require("express-handlebars");
const bodyParser = require("body-parser");
const mongoose = require("mongoose");
const passport = require("passport");
const Cpassport=require('./config/Cpassport');
const cookieParser = require("cookie-parser");
const session = require("express-session");
const methodOverride = require("method-override");
const flash = require("express-flash");
const mailer = require("express-mailer");
//Handlebars helpers
const
truncate,
stripTags,
formatDate,
select,
editIcon
= require("./helpers/hbs");
var googleS = new passport.Passport();
var localS = new passport.Passport();
const app = express();
//set static folder
app.use(express.static(path.join(__dirname, "public")));
//load keys
const keys = require("./config/keys");
//Map global Promises
mongoose.Promise = global.Promise;
//Mongoose Connection
mongoose
.connect(keys.mongoURI)
.then(() => console.log("MongoDB Connected"))
.catch(err => console.log(err));
//load user model
require("./models/User");
//story model
require("./models/Story");
//feedback model
require("./models/Feedback");
//local strategy model
require("./models/CUser");
//session
app.use(cookieParser());
app.use(
session(
secret: "secret",
resave: true,
saveUninitialized: true
)
);
//passport config
require("./config/passport")(googleS);
require("./config/Cpassport")(localS);
//Passport Middleware
app.use(passport.initialize());
app.use(passport.session());
//flash middleware
app.use(flash());
//set global variables
app.use((req, res, next) => null;
// res.locals.userr = req.userr );
// Load Routes
const auth = require("./routes/auth");
const index = require("./routes/index");
const stories = require("./routes/stories");
const mailOptions = require("./helper/mailer");
//body-parser middleware
app.use(bodyParser.urlencoded( extended: false ));
app.use(bodyParser.json());
//method overriding body parser
app.use(methodOverride("_method"));
//mailer
mailer.extend(app,
from: "Belle Solutions",
host: "smtp.gmail.com",
secureConnection: true,
port: 465,
transportMethod: "SMTP",
auth:
user: keys.email,
pass: keys.pass
);
//handlebars
app.engine(
"handlebars",
exphbs(
helpers:
truncate: truncate,
stripTags: stripTags,
formatDate: formatDate,
select: select,
editIcon: editIcon
,
defaultLayout: "main"
)
);
// app.get('*' , function(req ,res ,next))
app.set("view engine", "handlebars");
//use routes
app.use("/auth", auth);
app.use("/", index);
app.use("/stories", stories);
const port = process.env.PORT || 5000;
app.listen(port, () =>
console.log(`Server started on port $port`);
);
Any help or suggestion is really appreciated.
javascript node.js express passport-local passport-google-oauth2
javascript node.js express passport-local passport-google-oauth2
edited Oct 6 at 11:15
asked Oct 4 at 16:04
Babita Bisht
34
34
please, suggest ........
– Babita Bisht
Oct 6 at 11:25
add a comment |
please, suggest ........
– Babita Bisht
Oct 6 at 11:25
please, suggest ........
– Babita Bisht
Oct 6 at 11:25
please, suggest ........
– Babita Bisht
Oct 6 at 11:25
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52651132%2fthe-serialize-and-deserialze-methods-are-not-getting-called-separately%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
please, suggest ........
– Babita Bisht
Oct 6 at 11:25