We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a3624a commit 0c299d9Copy full SHA for 0c299d9
plugin/azure_active_directory/src/callback.php
@@ -64,8 +64,11 @@
64
65
// We use the e-mail to authenticate the user, so check that at least one
66
// e-mail source exists
67
- if (empty($me['mail']) || empty($me['mailNickname'])) {
68
- throw new Exception('Mail empty');
+ if (empty($me['mail'])) {
+ throw new Exception('The mail field is empty in Azure AD and is needed to set the organisation email for this user.');
69
+ }
70
+ if (empty($me['mailNickname'])) {
71
+ throw new Exception('The mailNickname field is empty in Azure AD and is needed to set the unique Azure ID for this user.');
72
}
73
74
$extraFieldValue = new ExtraFieldValue('user');
0 commit comments