[Error] You do not have an account on this site

Created on 19 March 2024, 8 months ago
Updated 12 July 2024, 4 months ago

Problem/Motivation

Some people will get the following message while trying to log in even if the account exists in Drupal:

"You do not have an account on this site. Please contact a administrator."

There's a bug with the o365 module where it doesn't ignore cases, for example in Azure AD, an email would look like this (first letter uppercase): Firstname.Lastname@domain.com but in Drupal, the email is firstname.lastname@domain.com (all lowercase) and the account wouldn't match so the person would get the error.

To fix the issue, we need to log in to Azure AD and check if the email of the user has some capital letters, then go back to Drupal and update the email to match the case.

Steps to reproduce

Simply create an account in Drupal with lower case/upper case that does not match the Azure AD account and try to log in.

Proposed resolution

Update the o365 module to ignore cases for email addresses.

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇨🇦Canada al_trottier

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024