mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-10-26 00:06:55 +03:00 
			
		
		
		
	Fixed the bug related with the need to enter passwords when you change the profile of any operator.
This commit is contained in:
		
							parent
							
								
									4bb79cb7cb
								
							
						
					
					
						commit
						7b35045f06
					
				| @ -78,7 +78,7 @@ if (isset($_POST['login']) && isset($_POST['password'])) { | |||||||
| 		} else { | 		} else { | ||||||
| 			update_operator($opId, $login, $email, $password, $localname, $commonname); | 			update_operator($opId, $login, $email, $password, $localname, $commonname); | ||||||
| 			// update the session password
 | 			// update the session password
 | ||||||
| 			if (isset($password) && $opId == $operator['operatorid']) { | 			if (!empty($password) && $opId == $operator['operatorid']) { | ||||||
| 				$toDashboard = $operator['vcpassword'] == md5('') && $password != ''; | 				$toDashboard = $operator['vcpassword'] == md5('') && $password != ''; | ||||||
| 				$_SESSION["${mysqlprefix}operator"]['vcpassword'] = md5($password); | 				$_SESSION["${mysqlprefix}operator"]['vcpassword'] = md5($password); | ||||||
| 				if($toDashboard) { | 				if($toDashboard) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user