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 1068569 commit fff8ab9Copy full SHA for fff8ab9
app/Auth/ExternalUser.php
@@ -108,9 +108,16 @@ public function validate()
108
109
foreach ($requiredAttributes as $attribute) {
110
if ($this->getFirstAttributeValue($attribute) == null) {
111
- Log::error('Required attribute missing', ['attribute' => $attribute, 'attributes' => $this->getAttributes()]);
112
-
113
- throw new MissingAttributeException($attribute);
+ if ($attribute === 'first_name') {
+ // Set "first_name" to a single space if it's missing
+ $this->setAttribute('first_name', '');
114
+ } else {
115
+ Log::error('Required attribute missing', [
116
+ 'attribute' => $attribute,
117
+ 'attributes' => $this->getAttributes()
118
+ ]);
119
+ throw new MissingAttributeException($attribute);
120
+ }
121
}
122
123
0 commit comments