Skip to content

Commit

Permalink
Add small UX adjustment and redirect to login page instead of `sso_…
Browse files Browse the repository at this point in the history
…login` (MIT-LCP#2349)

When the ORCID user clicks the activate link it is activated and
redirected to ORCID login. When the user clicks it again it is already
activated and redirected to SSO login (EduGain) which is a bad UX as its
account is linked with ORCID, not with EduGain.

This PR changes this behaviour and redirects to the login page.
  • Loading branch information
matkaczmarek authored Feb 19, 2025
2 parents 2741993 + b564c72 commit 183a123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physionet-django/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ def activate_orcid_user(request, uidb64, token):

if user and user.is_active:
messages.success(request, 'The account is active.')
return redirect('sso_login')
return redirect('login')

if default_token_generator.check_token(user, token):
with transaction.atomic():
Expand Down

0 comments on commit 183a123

Please sign in to comment.