Fix code scanning alert #9: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
7200efa6af
commit
f95d506660
|
|
@ -352,7 +352,8 @@ const Page = () => {
|
||||||
}
|
}
|
||||||
}>Cancel</Button>
|
}>Cancel</Button>
|
||||||
<Button onClick={()=>{
|
<Button onClick={()=>{
|
||||||
console.log("new user data: ", newDeviceData)
|
const { password, ...nonSensitiveData } = newDeviceData;
|
||||||
|
console.log("new user data: ", nonSensitiveData)
|
||||||
if (newDeviceData.id === undefined || newDeviceData.id === "") {
|
if (newDeviceData.id === undefined || newDeviceData.id === "") {
|
||||||
setIsUsernameEmpty(true)
|
setIsUsernameEmpty(true)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user