|
|
@@ -255,6 +255,11 @@ module.exports = function(crowi, app) {
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
+ // add a flash message to inform the user that processing was successful -- 2017.09.23 Yuki Takei
|
|
|
+ // cz. loginSuccess method doesn't work on it's own when using passport
|
|
|
+ // because `req.login()` prepared by passport is not called.
|
|
|
+ req.flash('successMessage', `The user '${userData.username}' is successfully created.`);
|
|
|
+
|
|
|
return loginSuccess(req, res, userData);
|
|
|
}
|
|
|
}
|