Page MenuHomePhabricator

Set last_login on first OAuth user create
Closed, ResolvedPublicBUG REPORT

Description

Summary

First-time user creation never sets last_login; only subsequent OAuth callbacks do. Minor admin/analytics inconsistency.

Code

  • backend/app/api/auth.py — new user branch

Acceptance criteria

  • last_login set on create and on later logins

Event Timeline

Arian_Ar triaged this task as Low priority.
EbenezerRao subscribed.

Hi! I'd like to work on this task, but I couldn't find the corresponding repository. Could you please link the repository (or provide the clone URL) that contains backend/app/api/auth.py? Thanks!

Submitted a fix for review.

Merge Request: https://gitlab.wikimedia.org/toolforge-repos/sentinel/-/merge_requests/12

This change sets last_login during the initial OAuth user creation while preserving the existing behavior for subsequent OAuth logins.

Arian_Ar moved this task from Backlog to In Review on the Tool-sentinel board.

@EbenezerRao Merged, Thanks for your contribution!