Skip to content

Commit

Permalink
[frontend] use user lang from form
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen committed Nov 30, 2015
1 parent b7fb012 commit 30258ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/express/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ app.post(countlyConfig.path+'/forgot', function (req, res, next) {
if (member) {
var timestamp = Math.round(new Date().getTime() / 1000),
prid = sha1Hash(member.username + member.full_name, timestamp);

member.lang = member.lang || req.body.lang || "en";
countlyDb.collection('password_reset').insert({"prid":prid, "user_id":member._id, "timestamp":timestamp}, {safe:true}, function (err, password_reset) {
countlyMail.sendPasswordResetInfo(member, prid);
plugins.callMethod("passwordRequest", {req:req, res:res, next:next, data:req.body});
Expand Down

0 comments on commit 30258ac

Please sign in to comment.