Page MenuHomePhabricator

Update Temp Accounts expiration to be 90 days
Closed, ResolvedPublic

Description

Background

According to a recent comment, and the Help Page (confirmed by Niharika), temp accounts expire after 90 days, not 1 year as previously documented. Because the Android team implemented this work a while ago when it was 1 year, the expiration notices need to be updated.

Task
  • Update the expiration messages to 90 days in all places that mention 1 year (It's sometimes 90 days and sometimes 1 year in figma, but it should be 90 days in all cases. Figma)

Event Timeline

Dbrant claimed this task.
Dbrant subscribed.

Android does not require any changes for this to work. We look at the actual temp-account cookie (which contains the expiration date given by the server) and displays a message that calculates the expiration based on that.

Hm ok - I filed this after seeing this countdown in Settings

Screenshot_20250314-102458.png (2×1 px, 154 KB)
, if you're sure this isn't an Android issue, maybe @Dreamy_Jazz can help us figure out why it's showing 364 days (this is after I made a temp account edit on Test.Wiki).

Hm ok - I filed this after seeing this countdown in Settings

Screenshot_20250314-102458.png (2×1 px, 154 KB)
, if you're sure this isn't an Android issue, maybe @Dreamy_Jazz can help us figure out why it's showing 364 days (this is after I made a temp account edit on Test.Wiki).

For reasons noted in T300271#9106396, we rely on a maintenance script to expire the accounts. So you can't look at the cookie to determine the expiration date. You either need to hardcode this as registration date + 90 days, or we can add the expiry number to https://test.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&list=&meta=siteinfo&formatversion=2&siprop=autocreatetempuser. I would go with hardcoding 90 days for now.

ABorbaWMF subscribed.

Testing on 2.7.50525-r-2025-03-17

This looks fine on OnePlus, but there's an issue on Pixel 6. The Pixel device is showing 0 days. For both devices, I logged out, edited on Test.wiki, and navigated to settings.

OnePlusPixel
Screenshot_2025-03-19-14-51-31-63_173823495e561b2cdc2de22ac640109c.jpg (2×1 px, 303 KB)
Screenshot_20250320-114952.png (2×1 px, 160 KB)

This looks fine on OnePlus, but there's an issue on Pixel 6. The Pixel device is showing 0 days. For both devices, I logged out, edited on Test.wiki, and navigated to settings.

Great catch -- the actual repro step is to make an edit (which creates a temp account) and then back out of the article screen while it's showing the "Edit success" snackbar, and before you see the snackbar that says "A temp account was created for you."
This should be fixed in the newest beta.