Commit dbf6658
fix getKey error when userinfo with nested structure
for example some OAuth2 provider provide multiple emails like this:
```
{
"_id": "aobEdbYhXfu5hkeqG",
"name": "Example User",
"emails": [
{
"address": "example1@example.com",
"primary": true
},
{
"address": "example2@example.com",
"primary": false
}
],
"status": "offline",
"statusConnection": "offline",
"username": "example",
"utcOffset": 0,
......
```
we need get email address for email map in kanboard.
this patch use `.` as separator to get value from nested structure.
in this example we can use `emails.0.address` as key name to get first
email address.1 parent a8941d5 commit dbf6658
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
0 commit comments