Skip to content

fix(Session): Don't updateLastLoginTimestamp when logging in via token - #62558

Closed
marcelklehr wants to merge 1 commit into
masterfrom
fix/token-login-timestamp
Closed

fix(Session): Don't updateLastLoginTimestamp when logging in via token#62558
marcelklehr wants to merge 1 commit into
masterfrom
fix/token-login-timestamp

Conversation

@marcelklehr

@marcelklehr marcelklehr commented Jul 27, 2026

Copy link
Copy Markdown
Member

This fixes a bug where for users logging in for the first time via a client that uses tokens, no <user>/files/ subdir is created.

Note: I'm not sure if this is the best possible fix.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Otherwise $firstTimeLogin is never true in the future

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr added this to the Nextcloud 35 milestone Jul 27, 2026
@marcelklehr
marcelklehr requested a review from a team as a code owner July 27, 2026 09:46
@marcelklehr marcelklehr added the 3. to review Waiting for reviews label Jul 27, 2026
@marcelklehr
marcelklehr requested review from come-nc, leftybournes, provokateurin and salmart-dev and removed request for a team July 27, 2026 09:46

@come-nc come-nc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not valid, this should still count as a login.

What would be the issue with setting $firstTimeLogin accordingly in both cases? A first login with a token is still a first login, no?

@come-nc

come-nc commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Also, how is the token created without first login in? That troubles me 🤔

@marcelklehr marcelklehr closed this Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants