osrf / cloudsim-widgets

Other
0 stars 1 forks source link

Only first letter of user name shows up when returning to site, sometimes #20

Closed osrf-migration closed 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


A possible cause could be that we're taking the first item in the identity array (identities[0]), but take the first letter of a string instead.

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


This could be caused by the browser remembering some old logic... I can't seem to reproduce it in a browser with a clear history.

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


localStorage doesn't support arrays, only supports strings. So we have to use JSON.parse when loading identities

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


gz-token pull request

osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).