Duet3D / DuetWebControl

A completely new web interface for the Duet electronics
GNU General Public License v3.0
409 stars 231 forks source link

Implement "Remember Password" Feature #491

Closed Infraviored closed 2 months ago

Infraviored commented 2 months ago

Implement "Remember Password" Feature

Problem Description

Currently, users are required to enter their password every time they load the DuetWebControl interface, even if they have previously logged in. This creates an unnecessary friction point in the user experience, especially for users who frequently access their Duet-powered devices and work in secure environments.

Solution

This pull request implements a "Remember Password" feature, allowing users to optionally save their password locally, eliminating the need for repeated password entry.

Changes Made

  1. Added a "Remember Password" checkbox to the login dialog (ConnectDialog.vue).
  2. Implemented password saving and retrieval using browser's localStorage.
  3. Added translations for the new "Remember Password" text in all supported languages.

Implementation Details

Security Considerations

Testing

chrishamm commented 2 months ago

Looks good to me, thanks!