mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 12:23:45 +08:00
Update comments
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
// GET /password-reset expects an OpenID token in the hash.
|
||||
// Links to this endpoit are generated in /views/password-reset-email.ejs.
|
||||
// Get /password-reset expects a signed token (JWT) in the hash.
|
||||
// Links to this endpoint are generated by /views/password-reset-email.ejs.
|
||||
router.get('/password-reset', (req, res, next) => {
|
||||
// TODO: store the redirect uri in the token or something fancy
|
||||
// TODO: store the redirect uri in the token or something fancy.
|
||||
// admins and regular users should probably be redirected to different places.
|
||||
res.render('password-reset', {redirectUri: process.env.TALK_ROOT_URL});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user