Skip to content

Remember-me by default: on registration and pre-checked on login #97

Open

Description

@johnhringiv

Context

  • app/Livewire/RegistrationForm.php:199 logs new users in with Auth::login($user) — no remember. With SESSION_LIFETIME=120, a new sailor who registers and comes back to log a flash the next weekend is logged out. That's likely the first impression after sign-up.
  • The login form's "Remember me" checkbox (resources/views/auth/login.blade.php:41) is unchecked by default. The app is a personal logbook used on personal devices; staying signed in is the expected default.

Proposed

  • Registration: Auth::login($user, remember: true).
  • Login form: render the "Remember me" checkbox checked by default (users on a shared computer can untick it).
  • Tests: registration test asserts remember_token is set; LoginTest::test_remember_me_functionality still covers the opt-out path when unticked.

Related: auto-login after password reset (#96).

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions