mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	refactored login process to be a form submit instead of ajax-redirect, implemented error message parsing using req.flash
This commit is contained in:
		| @@ -125,10 +125,7 @@ Controllers.login = function(req, res, next) { | ||||
| 	data.showResetLink = emailersPresent; | ||||
| 	data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1; | ||||
| 	data.allowRegistration = meta.config.allowRegistration; | ||||
|  | ||||
| 	if (req.query.next) { | ||||
| 		data.previousUrl = req.query.next; | ||||
| 	} | ||||
| 	data.error = req.flash('error')[0]; | ||||
|  | ||||
| 	res.render('login', data); | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user