openware / barong

Barong auth server
https://www.openware.com
Apache License 2.0
139 stars 262 forks source link

'language' method in user model throws error #1307

Open alexkopro opened 3 years ago

alexkopro commented 3 years ago

If a user has a 'data' field with no 'language' key in it, the language method of user model throws an error when it tries to upcase : JSON.parse(data)['language'].upcase