|
|
@ -92,7 +92,6 @@ Controllers.login = function (req, res, next) {
|
|
|
|
|
|
|
|
|
|
|
|
var allowLoginWith = (meta.config.allowLoginWith || 'username-email');
|
|
|
|
var allowLoginWith = (meta.config.allowLoginWith || 'username-email');
|
|
|
|
var returnTo = (req.headers['x-return-to'] || '').replace(nconf.get('base_url'), '');
|
|
|
|
var returnTo = (req.headers['x-return-to'] || '').replace(nconf.get('base_url'), '');
|
|
|
|
console.log('returnTo is', returnTo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var errorText;
|
|
|
|
var errorText;
|
|
|
|
if (req.query.error === 'csrf-invalid') {
|
|
|
|
if (req.query.error === 'csrf-invalid') {
|
|
|
|