You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 04:11:42 +03:00 
			
		
		
		
	Merge pull request #4577 from h33n0k/develop
Fix Incorrect Api status codes
This commit is contained in:
		@@ -181,7 +181,7 @@ router
 | 
				
			|||||||
				return internalUser.setPassword(res.locals.access, payload);
 | 
									return internalUser.setPassword(res.locals.access, payload);
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
			.then((result) => {
 | 
								.then((result) => {
 | 
				
			||||||
				res.status(201)
 | 
									res.status(200)
 | 
				
			||||||
					.send(result);
 | 
										.send(result);
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
			.catch(next);
 | 
								.catch(next);
 | 
				
			||||||
@@ -212,7 +212,7 @@ router
 | 
				
			|||||||
				return internalUser.setPermissions(res.locals.access, payload);
 | 
									return internalUser.setPermissions(res.locals.access, payload);
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
			.then((result) => {
 | 
								.then((result) => {
 | 
				
			||||||
				res.status(201)
 | 
									res.status(200)
 | 
				
			||||||
					.send(result);
 | 
										.send(result);
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
			.catch(next);
 | 
								.catch(next);
 | 
				
			||||||
@@ -238,7 +238,7 @@ router
 | 
				
			|||||||
	.post((req, res, next) => {
 | 
						.post((req, res, next) => {
 | 
				
			||||||
		internalUser.loginAs(res.locals.access, {id: parseInt(req.params.user_id, 10)})
 | 
							internalUser.loginAs(res.locals.access, {id: parseInt(req.params.user_id, 10)})
 | 
				
			||||||
			.then((result) => {
 | 
								.then((result) => {
 | 
				
			||||||
				res.status(201)
 | 
									res.status(200)
 | 
				
			||||||
					.send(result);
 | 
										.send(result);
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
			.catch(next);
 | 
								.catch(next);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user