mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	Merge branch 'csrf-excision' into hashtalk
This commit is contained in:
		| @@ -142,7 +142,7 @@ Controllers.login = function(req, res, next) { | ||||
|  | ||||
| 	data.alternate_logins = num_strategies > 0; | ||||
| 	data.authentication = login_strategies; | ||||
| 	data.token = res.locals.csrf_token; | ||||
| 	data.token = req.csrfToken(); | ||||
| 	data.showResetLink = emailersPresent; | ||||
| 	data.allowLocalLogin = meta.config.allowLocalLogin === undefined || parseInt(meta.config.allowLocalLogin, 10) === 1; | ||||
| 	data.allowRegistration = meta.config.allowRegistration; | ||||
| @@ -171,7 +171,7 @@ Controllers.register = function(req, res, next) { | ||||
|  | ||||
| 	data.authentication = login_strategies; | ||||
|  | ||||
| 	data.token = res.locals.csrf_token; | ||||
| 	data.token = req.csrfToken(); | ||||
| 	data.minimumUsernameLength = meta.config.minimumUsernameLength; | ||||
| 	data.maximumUsernameLength = meta.config.maximumUsernameLength; | ||||
| 	data.minimumPasswordLength = meta.config.minimumPasswordLength; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user