mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix broken ACP login, closes #5156
This commit is contained in:
		| @@ -104,7 +104,7 @@ Controllers.login = function (req, res, next) { | |||||||
| 	var registrationType = meta.config.registrationType || 'normal'; | 	var registrationType = meta.config.registrationType || 'normal'; | ||||||
|  |  | ||||||
| 	var allowLoginWith = (meta.config.allowLoginWith || 'username-email'); | 	var allowLoginWith = (meta.config.allowLoginWith || 'username-email'); | ||||||
| 	var returnTo = req.headers['x-return-to'].replace(nconf.get('url'), ''); | 	var returnTo = (req.headers['x-return-to'] || '').replace(nconf.get('url'), ''); | ||||||
|  |  | ||||||
| 	var errorText; | 	var errorText; | ||||||
| 	if (req.query.error === 'csrf-invalid') { | 	if (req.query.error === 'csrf-invalid') { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user