The login attempt failed. Reason: The email address is not allowed at this site.

The login attempt failed. Reason: The email address is not allowed at this site.

by Prashant Panchal -
Number of replies: 4

The login attempt failed. Reason: The email address is not allowed at this site.Getting error with 

custom OAuth 2 servicesCategory: Administration / Plugins / Authentication  Manage authentication  Available authentication plugins

Average of ratings: -
In reply to Prashant Panchal

Re: The login attempt failed. Reason: The email address is not allowed at this site.

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The authentication attempt using OAuth 2 is rejected by Moodle. Login domains has been configured for the OAuth 2 issuer in Moodle and the user's email address is not in the list of allowed domains.

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: The login attempt failed. Reason: The email address is not allowed at this site.

by Prashant Panchal -
Allow log in via email

Allow users to use both username and email address (if unique) for site login.
Allow accounts with same
Both are ticked
In reply to Leon Stringer

Re: The login attempt failed. Reason: The email address is not allowed at this site.

by Prashant Panchal -
got the error like into the log:
23 July 2021, 11:14 AM - - System System User login failed Login failed for user 'xxxx@gmail.com'. The user is not authorized (error ID '5'). web
In reply to Leon Stringer

Re: The login attempt failed. Reason: The email address is not allowed at this site.

by Prashant Panchal -
Thank you very much +1 smile