mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
tweaks and refactoring for #2774
This commit is contained in:
@@ -119,9 +119,10 @@ Controllers.register = function(req, res, next) {
|
||||
|
||||
|
||||
Controllers.confirmEmail = function(req, res, next) {
|
||||
user.email.confirm(req.params.code, function (data) {
|
||||
data.status = data.status === 'ok';
|
||||
res.render('confirm', data);
|
||||
user.email.confirm(req.params.code, function (err) {
|
||||
res.render('confirm', {
|
||||
error: err ? err.message : ''
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user