User Creation #2
This commit is contained in:
		@@ -5,6 +5,13 @@ if (isset($_POST) && !empty($_POST)){
 | 
				
			|||||||
		$newPassword = $_POST['newPassword1'];
 | 
							$newPassword = $_POST['newPassword1'];
 | 
				
			||||||
		$newPassword2 = $_POST['newPassword2'];
 | 
							$newPassword2 = $_POST['newPassword2'];
 | 
				
			||||||
		UserManager::changePassword($oldPassword, $newPassword, $newPassword2);
 | 
							UserManager::changePassword($oldPassword, $newPassword, $newPassword2);
 | 
				
			||||||
		//TODO: pridat odhlášení
 | 
							header('Location: ' . BASEDIR . 'logout');
 | 
				
			||||||
 | 
							die();
 | 
				
			||||||
 | 
						} else if (isset($_POST['submitCreateUser']) && $_POST['submitCreateUser'] != "") {
 | 
				
			||||||
 | 
							$userName = $_POST['userName'];
 | 
				
			||||||
 | 
							$password = $_POST['userPassword'];
 | 
				
			||||||
 | 
							UserManager::createUser($userName, $password);
 | 
				
			||||||
 | 
							header('Location: ' . BASEDIR . 'setting');
 | 
				
			||||||
 | 
							die();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user