mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	remove more from config
This commit is contained in:
		| @@ -21,6 +21,9 @@ editController.get = function(req, res, callback) { | ||||
|  | ||||
| 		userData.maximumSignatureLength = parseInt(meta.config.maximumSignatureLength, 10) || 255; | ||||
| 		userData.maximumAboutMeLength = parseInt(meta.config.maximumAboutMeLength, 10) || 1000; | ||||
| 		userData.maximumProfileImageSize = parseInt(meta.config.maximumProfileImageSize, 10); | ||||
| 		userData.allowProfileImageUploads = parseInt(meta.config.allowProfileImageUploads) === 1; | ||||
| 		userData.allowAccountDelete = parseInt(meta.config.allowAccountDelete, 10) === 1; | ||||
|  | ||||
| 		userData.title = '[[pages:account/edit, ' + userData.username + ']]'; | ||||
| 		userData.breadcrumbs = helpers.buildBreadcrumbs([{text: userData.username, url: '/user/' + userData.userslug}, {text: '[[user:edit]]'}]); | ||||
| @@ -50,6 +53,10 @@ function renderRoute(name, req, res, next) { | ||||
| 			return next(); | ||||
| 		} | ||||
|  | ||||
| 		if (name === 'password') { | ||||
| 			userData.minimumPasswordLength = parseInt(meta.config.minimumPasswordLength, 10); | ||||
| 		} | ||||
|  | ||||
| 		userData.title = '[[pages:account/edit/' + name + ', ' + userData.username + ']]'; | ||||
| 		userData.breadcrumbs = helpers.buildBreadcrumbs([ | ||||
| 			{text: userData.username, url: '/user/' + userData.userslug}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user