Dan Singerman dbf2f4efec Fix bug when sso_overrides_avatar is true but no avatar_url is passed
If a user has a current avatar, and sso_overrides_avatar is true, but no avatar_url is
passed in the sso attributes, the current code errors, as it tries to parse a nil
as a URL. It seems to me valid that a third party system may not pass an avatar_url in
some cases (e.g. avatars may not be mandatory, so not all users may have them)

This might warrant a discussion about what should happen in this case; maybe the current
avatar in discourse should be removed? This branch merely stops the login process erroring.
2015-01-28 16:01:39 +00:00
..
2014-09-25 18:28:51 +02:00
2014-11-20 14:53:15 +11:00
2014-02-17 19:42:08 +01:00
2014-12-23 01:55:13 +01:00
2014-04-08 17:35:44 +02:00
2014-11-20 14:53:15 +11:00
2014-07-03 17:29:44 +10:00
2014-04-08 17:35:44 +02:00
2014-08-27 14:38:03 +03:00
2014-12-03 11:51:49 +01:00
2014-04-08 17:35:44 +02:00
2015-01-12 12:10:15 +01:00
2015-01-08 11:18:43 +11:00
2014-11-20 14:53:15 +11:00
2014-02-17 19:42:08 +01:00
2014-11-20 14:53:15 +11:00
2014-07-03 17:29:44 +10:00
2015-01-17 02:26:12 -08:00
2014-11-20 14:53:15 +11:00