Commit d130e1b1 authored by Joe's avatar Joe

Merge branch 'master' of github.com:moecube/moecube-accounts-web

parents b25af76e af5bdb9c
...@@ -23,6 +23,10 @@ export const handleSSO = (user) => { ...@@ -23,6 +23,10 @@ export const handleSSO = (user) => {
} }
params.set('external_id', user.id); params.set('external_id', user.id);
params.set('avatar_url', user.avatar); params.set('avatar_url', user.avatar);
if (!user.active) {
params.set('require_activation', 'true');
}
const payload = Buffer.from(params.toString()).toString('base64'); const payload = Buffer.from(params.toString()).toString('base64');
url.searchParams.set('sso', payload); url.searchParams.set('sso', payload);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment