Skip to content

Can't sign in when service worker is active #510

Closed
@lucacasonato

Description

@lucacasonato
  • code-server version: 22b485a
  • OS Version: macOS 10.14.4

Description

When trying to sign in with the service-worker enabled you just get the error "Password is incorrect!".

Cause

When using the service worker we are caching the index.html file (or equivalent). When entering the password, the page gets reloaded, but the cached version is pulled from the service-worker.

Steps to Reproduce

  1. Run code-server with valid, signed TLS certs and use https.
  2. Open code-server.
  3. Enter the password.
  4. Submit the password.
  5. Failure

Fix

Stop caching the index.html file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions