Improve Sandstorm usernames management

We now use the `preferredHandle` exposed by Sandstorm as source for
the username and append a number if the username is already taken
since we need to ensure username uniqueness (eg 'max', 'max1', 'max2')

Fixes #352
This commit is contained in:
Maxime Quandalle 2015-11-11 14:15:37 -08:00
parent fc82f7227a
commit cb3bd86396
3 changed files with 30 additions and 7 deletions

View file

@ -64,7 +64,7 @@ jquery@1.11.4
kadira:blaze-layout@2.2.0
kadira:dochead@1.3.2
kadira:flow-router@2.8.0
kenton:accounts-sandstorm@0.1.7
kenton:accounts-sandstorm@0.1.8
launch-screen@1.0.4
livedata@1.0.15
localstorage@1.0.5