mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-11-03 20:27:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			499 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			499 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//
 | 
						|
// Created by stephane bourque on 2022-01-01.
 | 
						|
//
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "framework/orm.h"
 | 
						|
 | 
						|
namespace OpenWifi {
 | 
						|
 | 
						|
	inline void Sanitize([[maybe_unused]] const SecurityObjects::UserInfoAndPolicy &User,
 | 
						|
						 SecurityObjects::UserInfo &U) {
 | 
						|
		U.currentPassword.clear();
 | 
						|
		U.lastPasswords.clear();
 | 
						|
		U.oauthType.clear();
 | 
						|
	}
 | 
						|
 | 
						|
	inline void Sanitize([[maybe_unused]] const SecurityObjects::UserInfoAndPolicy &User,
 | 
						|
						 SecurityObjects::ApiKeyEntry &U) {
 | 
						|
		U.salt.clear();
 | 
						|
	}
 | 
						|
} // namespace OpenWifi
 |