Log in
People sign in often, and small obstacles such as blocked pasting, short sessions and lockouts add up.
The answer
Never block paste or password managers, and slow repeated attempts instead of locking people out. As strong as the weakest rule behind it: weak.
-
Never block paste or autofill in username, password or code fields.
Blocking paste or autofill fails WCAG 3.3.8 (AA) unless another route exists. NIST SP 800-63B-4 says verifiers shall allow password managers and autofill. A crawl found about 0.9% of login pages block paste.
- Applies when
- Log-in fields.
- Based on
- Standard or law
- Principle
- Work for everyone
- Common mistake
- Blocking paste in the password field.
- Field dataField data: A Large-Scale Measurement of Website Login PoliciesAl Roomi
- StandardsStandard: Understanding SC 3.3.8: Accessible Authentication (Minimum)W3C WAI, 2023
- Standard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Authentication Cheat SheetOWASP Cheat Sheet Series
-
Build the form so password managers can recognize, fill and save it, and check it still works after a password change.
An interview study (n=30) found people value autofill and that it sometimes fills an old password, drops the username or submits half-filled forms. OWASP asks for standard inputs. One qualitative study, so 3.
- Applies when
- Log-in and change-password forms.
- Based on
- Research
- Principle
- Let practiced people go faster
- User researchUser research: Why people (don't) use password managers effectivelyPearman et al., 2019
- StandardStandard: Understanding SC 3.3.8: Accessible Authentication (Minimum)W3C WAI, 2023
- GuidanceGuidance: Authentication Cheat SheetOWASP Cheat Sheet Series
-
Don’t lock accounts after a few wrong passwords. Slow attempts down in ways that spare the real owner.
A simulation, read as abstract only, estimates a three-strikes lockout locks out about 4% of honest users and suggests ten. No live user study. Logs from two universities show lockouts were rare there.
- Applies when
- Protecting against guessing.
- Based on
- Research
- Principle
- Prevent errors
- Common mistake
- Locking the account after three tries.
- Field dataField data: Empirical Measurement of Systemic 2FA UsabilityReynolds, 2020
- GuidanceGuidance: DALock: Password Distribution-Aware ThrottlingJeremiah Blocki, 2022
- Guidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
The other rules
-
Don’t make sign-in depend on remembering or retyping a secret, unless there’s another way or help, such as a password manager or paste.
WCAG 2.2 success criterion 3.3.8 Accessible Authentication (Minimum), level AA.
- Applies when
- Any log-in step.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 3.3.8: Accessible Authentication (Minimum)W3C WAI, 2023
-
Say when Caps Lock is on, and consider accepting the most common slips.
One paper with a company's log data: about 9% of failed logins were correctable typos, mostly case and Caps Lock, and the company reported a Caps Lock indicator cut those errors by about 75%. The indicator figure is the company's own, reported in the paper.
- Applies when
- Typing a password.
- Based on
- Research
- Principle
- Prevent errors
- ExperimentExperiment: Password Typos and How to Correct Them SecurelyRahul Chatterjee, 2016
-
Keep people signed in on trusted devices as long as the risk allows. Short sessions cost more time than they save.
Logs from two universities (tens of millions of events): remembering the device covered about 70% of logins, yet most of the time difference came from short session timeouts. Second-factor logins at two institutions, so 3.
- Applies when
- Setting session length and device remembrance.
- Based on
- Research
- Principle
- Let practiced people go faster
- Common mistake
- A session that ends after a few minutes of ordinary use.
- Field dataField data: Empirical Measurement of Systemic 2FA UsabilityReynolds, 2020
-
Explain what Remember me does.
The interview study found confusion about save prompts and remember-me. One qualitative source.
- Applies when
- Offering remembrance.
- Based on
- Research
- Principle
- Speak the person’s language
- User researchUser research: Why people (don't) use password managers effectivelyPearman et al., 2019
-
Ask for the username and password on one form, unless different users sign in different ways.
No user study or experiment was found.
- Applies when
- Laying out the log-in.
- Based on
- Convention
- Principle
- Let practiced people go faster
- User researchUser research: The Quest to Replace Passwords: A Framework for Comparative Evaluation of Web Authentication Schemes (extended technical report)Bonneau, 2012
-
When sign-in fails, say the details weren’t recognized, offer a reset, and don’t say which part was wrong.
The relevant sections of the security guidance were not read in this pass; no user study was found.
- Applies when
- Wrong username or password.
- Based on
- Convention
- Principle
- Help people recover from errors
- GuidanceGuidance: Authentication Cheat SheetOWASP Cheat Sheet Series
Accessibility
- WCAG 2.2 · 3.3.8WCAG 3.3.8 (AA): no cognitive test without an alternative; paste and autofill must work.
- Typing a one-time code by hand does not comply on its own; see One-time codes.
Open questions
- OpenIdentifier-first or single form? No evidence.
- OpenSign-in by emailed link: no user study found; one expert assessment rates it slow because of email delay.
- OpenNot read in this pass: the throttling and session sections of NIST SP 800-63B-4, and the error-message and lockout sections of the OWASP guidance.
Sources
- ExperimentExperiment: Password Typos and How to Correct Them SecurelyRahul Chatterjee, 2016
- Field dataField data: A Large-Scale Measurement of Website Login PoliciesAl Roomi
- Field data: Empirical Measurement of Systemic 2FA UsabilityReynolds, 2020
- User researchUser research: Why people (don't) use password managers effectivelyPearman et al., 2019
- User research: The Quest to Replace Passwords: A Framework for Comparative Evaluation of Web Authentication Schemes (extended technical report)Bonneau, 2012
- StandardsStandard: Understanding SC 3.3.8: Accessible Authentication (Minimum)W3C WAI, 2023
- Standard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Authentication Cheat SheetOWASP Cheat Sheet Series
- Guidance: DALock: Password Distribution-Aware ThrottlingJeremiah Blocki, 2022
- Guidance: Forgot Password Cheat SheetOWASP Cheat Sheet Series
Related
- Sign upDo not require an account where the service works without one, and ask only for what the account needs.Answer: weak.
- Password resetSend a single-use, expiring link to a confirmed address, and do not use security questions.Answer: moderate.
- PasskeysOffer passkeys at sign-up and recovery, and show people where each one lives and how to remove it.Answer: moderate.
- Autofill and identifying input purposeMark each field with what it is for, and never block autofill, pasting or password managers.Answer: settled.
- Show passwordHide the password by default, with a control that shows it.Answer: moderate.
- One-time codesUse one field that can be pasted into and filled automatically, and do not submit by itself.Answer: moderate.