mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	get and set secret of user
This commit is contained in:
		
							parent
							
								
									f6786406ef
								
							
						
					
					
						commit
						7f28008d5d
					
				|  | @ -567,6 +567,7 @@ if($users) { | |||
| 		echo "  <attr name=\"disabled\">".$user->isDisabled()."</attr>\n"; | ||||
| 		echo "  <attr name=\"pwdexpiration\">".$user->getPwdExpiration()."</attr>\n"; | ||||
| 		echo "  <attr name=\"homefolder\">".$user->getHomeFolder()."</attr>\n"; | ||||
| 		echo "  <attr name=\"secret\">".$user->getSecret()."</attr>\n"; | ||||
| 		if($image = $user->getImage()) { | ||||
| 			echo "  <image id=\"".$image['id']."\">\n"; | ||||
| 			echo "   <attr name=\"mimetype\">".$image['mimeType']."</attr>\n"; | ||||
|  |  | |||
|  | @ -133,6 +133,8 @@ function insert_user($user) { /* {{{ */ | |||
| 				$logger->debug($dms->getDB()->getErrorMsg()); | ||||
| 				return false; | ||||
| 			} else { | ||||
| 				if($user['attributes']['secret']) | ||||
| 					$newUser->setSecret($user['attributes']['secret']); | ||||
| 				$logger->info("Added user '".$user['attributes']['login']."'"); | ||||
| 				if(isset($user['image']) && $user['image']) { | ||||
| 					$filecontents = base64_decode($user['image']['data']); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann