Programming/Html

[Html] Input elements should have autocomplete attributes (suggested: "current-password") 였λ₯˜ ν•΄κ²° 방법

yuri lee 2023. 2. 15. 21:15
λ°˜μ‘ν˜•

Intro

μ•ˆλ…•ν•˜μ„Έμš”. Input tagλ₯Ό μ΄μš©ν•˜μ—¬ μ‚¬μš©μžμ˜ password μž…λ ₯을 λ°›μ•„λ‚΄λŠ” μ½”λ“œμ—μ„œ μ•„λž˜μ™€ 같은 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. 

 

Input elements should have autocomplete attributes (suggested: "current-password")

 

참고둜 μ‚¬μš©ν•œ μ½”λ“œλŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€. 

<input type="password" name="password">

 

Why?

Autocomplete μ„ 톡해 μ›Ή κ°œλ°œμžλŠ” 양식 ν•„λ“œ 값을 μž…λ ₯ν•  λ•Œ μ‚¬μš©μž μ—μ΄μ „νŠΈκ°€ μžλ™μœΌλ‘œ 지원해야 ν•˜λŠ” κΆŒν•œμ„ 지정할 수 있으며, ν•„λ“œμ— μ˜ˆμƒλ˜λŠ” 정보 μœ ν˜•μ— λŒ€ν•œ λΈŒλΌμš°μ € μ•ˆλ‚΄λ„ μ œκ³΅ν•œλ‹€κ³  ν•©λ‹ˆλ‹€. 즉 μžλ™μ™„μ„± κΈ°λŠ₯이라고 λ³Ό 수 μžˆμŠ΅λ‹ˆλ‹€ :)

 

How to solve the problem

autocomplete 속성을 넣어쀄 경우 ν•΄λ‹Ή 였λ₯˜κ°€ μ‚¬λΌμ§€κ²Œ λ©λ‹ˆλ‹€ .

<input type="password" name="password" autocomplete="on">

 


https://stackoverflow.com/questions/54970352/input-elements-should-have-autocomplete-attributes

λ°˜μ‘ν˜•