Duet3D / DuetWebControl

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

Implement "Remember Password" Feature #491

Closed Infraviored closed 6 days ago

Infraviored commented 1 week 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 6 days ago

Looks good to me, thanks!