mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	pass allowRegistration in login API for #1786
This commit is contained in:
		| @@ -166,6 +166,8 @@ Controllers.login = function(req, res, next) { | ||||
| 	data.token = res.locals.csrf_token; | ||||
| 	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; | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user