End other sessions on password change and give admin links 72 hours
- AuthenticateSession in the web group logs out a user's other sessions when their password changes. - Set-password links made by an admin use a new admin_links broker with its own password_setup_tokens table and a 72-hour expiry, so links handed over by hand don't expire in an hour. Forgot-password links keep 60 minutes. The reset page accepts both, and issuing or using a link ends the user's earlier links. - Admin links are emailed with PasswordSetupLinkNotification; the email body is shared with the forgot-password email via PasswordLinkMail. - Spec chapter 3 and CLAUDE.md describe the link lifetimes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -204,7 +204,7 @@ new class extends Component
|
||||
<x-input
|
||||
id="setup-link"
|
||||
:label="__('users.setup_link.label')"
|
||||
:hint="__('users.setup_link.hint', ['count' => config('auth.passwords.users.expire')])"
|
||||
:hint="__('users.setup_link.hint', ['count' => intdiv((int) config('auth.passwords.admin_links.expire'), 60)])"
|
||||
:value="$setupLink"
|
||||
x-ref="setupLink"
|
||||
x-on:focus="$el.select()"
|
||||
|
||||
Reference in New Issue
Block a user