Backup code generation script

Description

Add a script in , which will create a set of backup codes for a given username and email it to the address associated with the admin account. Codes should not be visible to the person running the script.

We can base the email on , with text like the following.

Hi admin-name,

A set of backup codes has been requested for your account. Please use one of the following to log in, and then remove them from your account.

<%= codes %>

Attachments

1

is blocked by

Activity

EchoEkhi 
April 9, 2025 at 7:05 PM

I’ve changed the phrasing of the email, since backup codes are automatically invalidated once they’re used

Details

Assignee

Reporter

Roadmap

Admin

Priority

Affects versions

Components

Utilities

Difficulty

Required Access Level

Admin

Milestone

Sentry

Created February 19, 2025 at 11:26 PM
Updated April 9, 2025 at 7:06 PM