mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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.token = res.locals.csrf_token; | ||||||
| 	data.showResetLink = emailersPresent; | 	data.showResetLink = emailersPresent; | ||||||
| 	data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1; | 	data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1; | ||||||
|  | 	data.allowRegistration = meta.config.allowRegistration; | ||||||
|  |  | ||||||
| 	if (req.query.next) { | 	if (req.query.next) { | ||||||
| 		data.previousUrl = req.query.next; | 		data.previousUrl = req.query.next; | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user