mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +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.password) { | ||||
| 					delete data.password; | ||||
| 					data.password = null; | ||||
| 					data.hasPassword = true; | ||||
| 				} else { | ||||
| 					data.hasPassword = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user