mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	setting password to null in getUserData, because Object.delete is bad? :P (thanks @barisusakli)
This commit is contained in:
		| @@ -187,7 +187,7 @@ var bcrypt = require('bcryptjs'), | |||||||
|  |  | ||||||
| 			if (data) { | 			if (data) { | ||||||
| 				if (data.password) { | 				if (data.password) { | ||||||
| 					delete data.password; | 					data.password = null; | ||||||
| 					data.hasPassword = true; | 					data.hasPassword = true; | ||||||
| 				} else { | 				} else { | ||||||
| 					data.hasPassword = false; | 					data.hasPassword = false; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user