openstax / accounts

OpenStax centralized authentication and accounts service

Home Page:https://accounts.openstax.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instructors cannot Request Instructor Access (Rejected/Incomplete contacts)

brittanyearly opened this issue · comments

Describe the bug
When an Instructor account is Rejected, for example, they can Request Instructor Access from the Accounts Drop Down. Currently, clicking that brings you to Profile, not the form to fill out.

Appears like the URL is redirected from where the form would be.

To Reproduce

  1. Go to staging.openstax.org
  2. Sign in as a Rejected or Incomplete Sign up Account - be12+569t_s@rice.edu
  3. Click on Name
  4. Click Request Instructor Access
  5. Notice profile is shown

Expected behavior
User would see the form to complete.

Screenshots
Screen Shot 2022-06-28 at 1.12.46 PM.png

Note

According to #2124, Accounts should redirect from profile to the appropriate form.

#2124 says:

We have two new statuses for users in accounts:
rejected_by_sheerid and incomplete_signup.

We should handle these by changing the menu in OSWeb for them as follows:
rejected_by_sheerid => "Pending Instructor Access", with link to profile.
incomplete_signup => "Verify your email address", with link to profile.

When a user is in either status the menu is reflecting their status and links them to their profile (which accounts will handle and redirect the user to the correct place)

When use is sent to profile, need to be sent back to the correct part of the signup flow