feat: Implement WICG change-password-url (#7072) (#7990)

* feat:  Implement WICG change-password-url (#7072)

* fix style for TravisCI
v1.18.x
Opliko 5 years ago committed by Barış Soner Uşaklı
parent 1aa520b7a0
commit df1efe5f96

@ -29,6 +29,9 @@ module.exports = function (app, middleware, controllers) {
setupPageRoute(app, '/user/:userslug/edit/username', middleware, accountMiddlewares, controllers.accounts.edit.username);
setupPageRoute(app, '/user/:userslug/edit/email', middleware, accountMiddlewares, controllers.accounts.edit.email);
setupPageRoute(app, '/user/:userslug/edit/password', middleware, accountMiddlewares, controllers.accounts.edit.password);
app.use('/.well-known/change-password', function (req, res) {
res.redirect('/me/edit/password');
});
setupPageRoute(app, '/user/:userslug/info', middleware, accountMiddlewares, controllers.accounts.info.get);
setupPageRoute(app, '/user/:userslug/settings', middleware, accountMiddlewares, controllers.accounts.settings.get);
setupPageRoute(app, '/user/:userslug/uploads', middleware, accountMiddlewares, controllers.accounts.uploads.get);

Loading…
Cancel
Save