convert to string

This commit is contained in:
barisusakli
2016-08-30 13:19:04 +03:00
parent e33dfe3c55
commit 0eb3fb222f

View File

@@ -109,7 +109,7 @@ Controllers.login = function(req, res, next) {
if (req.query.error === 'csrf-invalid') {
errorText = '[[error:csrf-invalid]]';
} else if (req.query.error) {
errorText = validator.escape(req.query.error);
errorText = validator.escape(String(req.query.error));
}
data.alternate_logins = loginStrategies.length > 0;