Skip to content

[ENG-9994][ENG-12168] Add API endpoint/view for resend confirmation URL - #11913

Open
bodintsov wants to merge 5 commits into
CenterForOpenScience:feature/pbs-26-18from
bodintsov:feature/ENG-9994
Open

bodintsov wants to merge 5 commits into
CenterForOpenScience:feature/pbs-26-18from
bodintsov:feature/ENG-9994

Conversation

@bodintsov

@bodintsov bodintsov commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Ticket

Main: https://openscience.atlassian.net/browse/ENG-9994
Sub: https://openscience.atlassian.net/browse/ENG-12168

Purpose

Add an endpoint so FE can send a request to resend the confirmation URL for the email

Changes

Add an endpoint and a View so FE can send a request to resend the confirmation URL for the email

Side Effects

N/A

QE Notes

N/A

CE Notes

N/A

Documentation

N/A

@cslzchen cslzchen changed the title [ENG-9994] Feature/add API for resend confirmation URL [ENG-9994][ENG-12168] Add API endpoint/view for resend confirmation URL Sep 14, 2026

@cslzchen cslzchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In addition, add unit tests

Comment thread api/users/views.py Outdated
view_name = 'request-resend-confirmation'
throttle_classes = (NonCookieAuthThrottle, BurstRateThrottle, RootAnonThrottle, SendEmailThrottle)

def get(self, request, *args, **kwargs):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should this be a POST request?

  • Legacy GET view is replaced by Angular FE
  • Legacy POST view needs to be replaced by this PR

Comment thread api/users/views.py Outdated
view_name = 'request-resend-confirmation'
throttle_classes = (NonCookieAuthThrottle, BurstRateThrottle, RootAnonThrottle, SendEmailThrottle)

def get(self, request, *args, **kwargs):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In addition, take a look at the legacy view, e.g.

  • Is send_confirm_email what we can use here?
  • There is also user.email_last_sent = timezone.now(), is this no longer needed?
  • And any other pieces we need to add/update when moving legacy flask to django DRF?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants