js

[JavaScript] Input elements should have autocomplete attributes

natrue 2021. 12. 1. 17:19
728x90
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) 
<input type=​"password" id=​"password" name=​"password" placeholder=​"λΉ„λ°€λ²ˆν˜Έλ₯Ό μž…λ ₯ν•΄μ£Όμ„Έμš”." onkeyup=​"enterkey()​;​">​

<input> νƒœκ·Έμ— μžλ™μ™„μ„± κΈ°λŠ₯을 ν•΄μ œν•˜λŠ” 
 autocomplete="off" μΆ”κ°€ 

<input type=​"password" id=​"password" name=​"password" placeholder=​"λΉ„λ°€λ²ˆν˜Έλ₯Ό μž…λ ₯ν•΄μ£Όμ„Έμš”." autocomplete="off" onkeyup=​"enterkey()​;​">​

 autocomplete="off"  = μžλ™μ™„μ„±μ„ κΈˆμ§€ν•œλ‹€.

 

* 단, ν¬λ‘¬μ΄λ‚˜ μ‚¬νŒŒλ¦¬ λ“±μ—μ„œ λ‚˜νƒ€λ‚˜λŠ”

[ꡬ글/μ• ν”Œ/μ‚Όμ„± 계정에 이 계정 μ €μž₯ν•˜κΈ°]λ₯Ό 톡해 μ €μž₯된 μ •λ³΄λŠ” κΈˆμ§€λ˜μ§€ μ•ŠλŠ”λ‹€.

이 λ˜ν•œ κΈˆμ§€μ‹œν‚€λ €λ©΄ μ•„λž˜μ— λ‚˜μ˜€λŠ” new-password 값을 μ‚¬μš©