You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by an...@apache.org on 2015/08/17 08:28:04 UTC
incubator-ignite git commit: # IGNITE-843 Cleanup.
Repository: incubator-ignite
Updated Branches:
refs/heads/ignite-843 1ecc6d61b -> 83e0457f1
# IGNITE-843 Cleanup.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/83e0457f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/83e0457f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/83e0457f
Branch: refs/heads/ignite-843
Commit: 83e0457f1c03425b80daba297e1da85bc80736bd
Parents: 1ecc6d6
Author: Andrey <an...@gridgain.com>
Authored: Mon Aug 17 13:27:57 2015 +0700
Committer: Andrey <an...@gridgain.com>
Committed: Mon Aug 17 13:27:57 2015 +0700
----------------------------------------------------------------------
.../src/main/js/routes/public.js | 51 --------------------
1 file changed, 51 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/83e0457f/modules/control-center-web/src/main/js/routes/public.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/routes/public.js b/modules/control-center-web/src/main/js/routes/public.js
index dcc5f71..ef00f56 100644
--- a/modules/control-center-web/src/main/js/routes/public.js
+++ b/modules/control-center-web/src/main/js/routes/public.js
@@ -186,57 +186,6 @@ router.get('/reset/:token', function (req, res) {
});
});
-/**
- * Reset password with given token.
- */
-router.post('/reset_password', function(req, res) {
- db.Account.findOne({ resetPasswordToken: req.body.token }, function(err, user) {
- if (!user)
- return res.status(500).send('Invalid token for password reset!');
-
- if (err)
- return res.status(500).send(err);
-
- user.setPassword(req.body.password, function (err, updatedUser) {
- if (err)
- return res.status(500).send(err.message);
-
- updatedUser.resetPasswordToken = undefined;
-
- updatedUser.save(function (err) {
- if (err)
- return res.status(500).send(err.message);
-
- var transporter = nodemailer.createTransport({
- service: 'gmail',
- auth: {
- user: _mailUser,
- pass: _mailPass
- }
- });
-
- var mailOptions = {
- from: _mailUser,
- to: user.email,
- subject: 'Your password has been changed',
- text: 'Hello,\n\n' +
- 'This is a confirmation that the password for your account ' + user.email + ' has just been changed.\n\n' +
- 'Now you can login: http://' + req.headers.host + '\n\n' +
- '--------------\n' +
- 'Apache Ignite Web Control Center\n'
- };
-
- transporter.sendMail(mailOptions, function(err){
- if (err)
- return res.status(503).send('Password was changed, but failed to send confirmation e-mail!<br />' + err);
-
- return res.status(200).send(user.email);
- });
- });
- });
- });
-});
-
/* GET home page. */
router.get('/', function (req, res) {
if (req.isAuthenticated())