Merge pull request #339 from OktopUSP/autofix/alert-9-356999ecb0

Fix code scanning alert #9: Clear-text logging of sensitive information
This commit is contained in:
Leandro Antônio Farias Machado 2024-09-21 13:21:16 -03:00 committed by GitHub
commit 7053f9fea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -352,7 +352,8 @@ const Page = () => {
}
}>Cancel</Button>
<Button onClick={()=>{
console.log("new user data: ", newDeviceData)
const { password, ...nonSensitiveData } = newDeviceData;
console.log("new user data: ", nonSensitiveData)
if (newDeviceData.id === undefined || newDeviceData.id === "") {
setIsUsernameEmpty(true)
return